-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blazor webassembly on DotNet 5 rc2 missing globalization for Bosnian month names #43398
Comments
@lewing FYI |
/cc @EgorBo @steveisok |
@lewing what is the strategy to address such issues? Just add the missing locales? |
That is a different issue. The culture data is split up to save space so you can't just load any culture at runtime and expect it to work. You should be able to enable that full culture list by setting /cc @pranavkm |
@EgorBo I think we may just need to document things |
I apologies,I did delete my comment. |
@lewing it's documented here https://docs.microsoft.com/en-us/dotnet/standard/globalization-localization/globalization-icu#icu-on-webassembly (has a link to list of supported locales) |
Yeah, I didn't realize the app was initializing a new culture. We should probably call that out in our docs. |
I think we should add a more detailed description on the options to enable a full globalization experience, like the MSBuild property that @lewing pointed out here, does that make sense? |
I'm experiencing the same after upgrading to RC2. However, the culture I'm using is What I'm doing: |
@cornem is that with |
No, is that required now?
…On Thu, Oct 15, 2020, 5:35 PM Larry Ewing ***@***.***> wrote:
@cornem <https://github.com/cornem> is that with
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
in your .csproj?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43398 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4LJPPY3LILLNKQSM2KSB3SK4JDXANCNFSM4SQ2GJHA>
.
|
@cornem by default Blazor loads a small subset of culture data based on the browser's current language setting. That option tells blazor to load a larger subset of cultures that is intended to mirror the cultures the browser supports. |
Btw, I've added a note about this in our docs:https://docs.microsoft.com/en-us/aspnet/core/blazor/globalization-localization?view=aspnetcore-5.0#blazor-webassembly. It should take another day for the website to update. |
I upgraded my Blazor webassembly project to .Net5 RC2 (from .Net5 RC1) and I did notice that month names for my (Bosnian) ui culture are wrong.
Here is steps to reporduce:
In Main metoh of Program class I do set cultures to Bosninan
On any razor page when I try to get long date:
The text was updated successfully, but these errors were encountered: