Hello
Thanks for developing this great resouce!
I'm having some trouble with the loader. It seems to load all the satellite assemblies except for the one that is set by the browser.
I load the cultures from my resources (yes, confirmed they are all there)
<PropertyGroup>
...
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
</PropertyGroup>
Program.cs
await host.LoadSatelliteCultureAssembliesCultureAsync([ new CultureInfo("en"), new CultureInfo("id"), new CultureInfo("th"), new CultureInfo("zh-Hans"), ]);
await host.RunAsync();
If my default browser language is not one of the list, then switching between cultures and then calling StateHasChanged()
CultureInfo.DefaultThreadCurrentCulture
= CultureInfo.DefaultThreadCurrentUICulture
= CultureInfo.CurrentCulture
= CultureInfo.CurrentUICulture
= new CultureInfo("th");
StateHasChanged();
works fine.
But when I set the browser's default language to Thai (say):
Then doing this does not work. It only displays the default culture when I call this:
CultureInfo.DefaultThreadCurrentCulture
= CultureInfo.DefaultThreadCurrentUICulture
= CultureInfo.CurrentCulture
= CultureInfo.CurrentUICulture
= new CultureInfo("th");
StateHasChanged();
But all the other cultures (except "th") works fine. Conversely if I set my browser default to say, Japanese (which is not on my list of supported cultures), then all the cultures can be rendered.