Replies: 2 comments 2 replies
-
@ysjr-2002 Thank you for reporting. We will give triage later. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ysjr-2002 感谢提交 Issue 以我多年的经验我猜是时间格式化设置有问题 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an existing issue for this?
Describe the bug
基于Bootstrapblazor6.5版本做国际化过程中遇到一个问题,
services.AddRequestLocalization<IOptions>((localizerOption, blazorOption) =>
{
var cultures = new[] { "zh-CN" };
localizerOption.AddSupportedCultures(cultures);
localizerOption.AddSupportedUICultures(cultures);
});
页面使用DateTimeRange控件,<DateTimeRange DateFormat="yyyy-MM-dd" @bind-Value="@context.Range"> 当指定简体中文时工作正常。

但指定英文时
services.AddRequestLocalization<IOptions>((localizerOption, blazorOption) =>
{
var cultures = new[] { "en-US" };
localizerOption.AddSupportedCultures(cultures);
localizerOption.AddSupportedUICultures(cultures);
});
出现错误以下错误
请问是什么原因引起的错误?
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
5.0
Anything else?
BootstrapBlazor版本是6.5,操作系统Windows 11
Beta Was this translation helpful? Give feedback.
All reactions