Closed ysjr-2002 closed 3 days ago
基于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); }); 出现错误以下错误
请问是什么原因引起的错误?
No response
5.0
BootstrapBlazor版本是6.5,操作系统Windows 11
@ysjr-2002 Thank you for reporting. We will give triage later.
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