-
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
[mono] Browser's ICU limitations #39285
Comments
@EgorBo Since we hit a good spot w/ ICU, please update. |
@steveisok updated the description. |
@EgorBo might be worth adding these browser limitations into this doc? https://docs.microsoft.com/en-us/dotnet/standard/globalization-localization/globalization-icu |
@EgorBo @steveisok should we add the list of limitations to the docs I shared above and close this? |
Yeah, I think that’s fine |
@EgorBo could you please update the documentation page (hit Edit there) |
@EgorBo Since this is for .NET 5, please update the docs so that we can close the issue. |
This was fixed by: dotnet/docs#20830. Thanks, @EgorBo |
We use a stripped version of ICU data file. The default size is ~30Mb (or ~5mb after compression) - we reduced it down to 1.39Mb (or ~302kb compressed) by removing some features we don't need to can give up on. The main filter file is located here: https://github.com/dotnet/icu/blob/maint/maint-67/icu-filters/optimal.json
Here is a list of known limitations:
CultureInfo.EnglishName
returns "locale" as a name, e.g. "en (US)" instead of "English (United States)"CultureInfo.NativeName
returns "locale" as a name, e.g. "ru (RU)" instead of "русский (Россия)"DateTimeFormatInfo.NativeCalendarName
is not supported.RegionInfo.NativeName
returns a short name e.g. "US" instead of "United States" etc.String.Normalize
andString.IsNormalized
don't support rarely usedNormalizationForm.FormKC
andNormalizationForm.FormKD
forms.RegionInfo.CurrencyNativeName
is not supported, it returnsCurrencyEnglishName
instead, e.g.new RegionInfo("ru-RU").CurrencyNativeName
: "Russian Ruble" instead of "рубль".The text was updated successfully, but these errors were encountered: