-
-
Notifications
You must be signed in to change notification settings - Fork 368
Closed
Labels
need-repro-projectNeed repro projectNeed repro projectquestionQuestion that needs to be answeredQuestion that needs to be answered
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
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
Metadata
Metadata
Assignees
Labels
need-repro-projectNeed repro projectNeed repro projectquestionQuestion that needs to be answeredQuestion that needs to be answered