dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.84k stars 4.62k forks source link

allow stripping the icu data for blazor apps #81552

Open schmitch opened 1 year ago

schmitch commented 1 year ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

at the moment a lot of blazor apps are probably only published for a select few non english languages. however for them one can either use the invariant localization and than you would have no icu data at all or you can use the whole icu data there is no inbetween.

Describe the solution you'd like

it would be great that instead of having something like that:

https://learn.microsoft.com/aspnet/core/blazor/globalization-localization?view=aspnetcore-7.0&pivots=webassembly#invariant-globalization

One should be able to specify which locales to use, like de-de,en-us,en-gb and blazor would strip the data, so that it will be way smaller.

Additional context

No response

ghost commented 1 year ago

Tagging subscribers to this area: @dotnet/area-system-globalization See info in area-owners.md if you want to be subscribed.

Issue Details
### Is there an existing issue for this? - [X] I have searched the existing issues ### Is your feature request related to a problem? Please describe the problem. at the moment a lot of blazor apps are probably only published for a select with non english languages. however for them one can either use the invariant localization and than you would have no icu data at all or you can use the whole icu data there is no inbetween. ### Describe the solution you'd like it would be great that instead of having something like that: https://learn.microsoft.com/aspnet/core/blazor/globalization-localization?view=aspnetcore-7.0&pivots=webassembly#invariant-globalization One should be able to specify which locales to use, like de-de,en-us,en-gb and blazor would strip the data, so that it will be way smaller. ### Additional context _No response_
Author: schmitch
Assignees: -
Labels: `area-System.Globalization`
Milestone: -
mkArtakMSFT commented 1 year ago

@lewing FYI

ghost commented 1 year ago

Tagging subscribers to this area: @dotnet/area-meta See info in area-owners.md if you want to be subscribed.

Issue Details
### Is there an existing issue for this? - [X] I have searched the existing issues ### Is your feature request related to a problem? Please describe the problem. at the moment a lot of blazor apps are probably only published for a select with non english languages. however for them one can either use the invariant localization and than you would have no icu data at all or you can use the whole icu data there is no inbetween. ### Describe the solution you'd like it would be great that instead of having something like that: https://learn.microsoft.com/aspnet/core/blazor/globalization-localization?view=aspnetcore-7.0&pivots=webassembly#invariant-globalization One should be able to specify which locales to use, like de-de,en-us,en-gb and blazor would strip the data, so that it will be way smaller. ### Additional context _No response_
Author: schmitch
Assignees: -
Labels: `arch-wasm`, `area-Meta`
Milestone: -
saber-wang commented 1 year ago

We also hope to implement the same functions outside of blazer, such as aspnetcore, because there is no need for globalization.

ilonatommy commented 1 year ago

It is connected with https://github.com/dotnet/runtime/pull/80421. The solution is not as described in the issue, as we do not produce the ICU package on the build but it provides a bit more flexibility. We should introduce it in Blazor as well.