-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
HebrewCalendar not working properly on client side blazor #107731
Comments
@ysroels thanks for contacting us. You might need to configure additional settings on your project. See https://learn.microsoft.com/en-us/aspnet/core/blazor/globalization-localization?view=aspnetcore-8.0#net-globalization-and-international-components-for-unicode-icu-support-blazor-webassembly |
Tagging subscribers to this area: @dotnet/area-system-globalization |
Tagging subscribers to 'arch-wasm': @lewing |
Pedantically, this isn't actually guaranteed (although it is likely). Culture data is sourced from the OS, and is subject to change without warning for no obvious reason. You should not rely on its stability. |
@ysroels, what globalization settings are you using? Do you have
set? |
@ilonatommy I do indeed have that set. |
It seems to be a blazor-only issue, on WASM app the problem does not exist. I will update when I have more info. |
There are two issues connected with this report. One is the know effect of trying to limit data loaded to browser - we're not adding all possible ICU data, even with
but not
The other issue is that if you are using net9 of P7+, with fingerprinting, you can have problems with loading that custom file - we're fixing it in #108011 and will backport it asap. Without this fix you can load custom ICU only if you disable fingerprinting: There's a minor mistake in the repro code: we cannot index months from 0, DateTime. Let me know if this worked. |
In WASM apps, culture data is sourced from icu transport nugets that change when there's a change in CLDR. Using the OS's NLS applies to applications that do not run in browser's sandboxed environment. |
Sure, but at that point the nuget packages are essentially the OS packages (NLS or not), and the same considerations apply. |
This issue has been marked |
This issue has been automatically marked |
Is there an existing issue for this?
Describe the bug
printing DateTime using "he-IL"
CultureInfo
and theHebrewCalendar
outputs the date with the month written in digits or using Latin characters instead of Hebrew characters.Expected Behavior
The expected output of a
DateTime
printed using a "he-IL"CultureInfo
that uses theHebrewCalendar
would be fully in Hebrew characters (as is indeed the case when printing a DateTime on the server instead of client side)Steps To Reproduce
Exceptions (if any)
No response
.NET Version
confirmed on 7
Anything else?
No response
The text was updated successfully, but these errors were encountered: