-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Pseudo-locales don't work in Blazor WebAssembly #42258
Comments
@uecasm thanks for contacting us.
|
Hi @uecasm. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Yes, they both work perfectly fine in a .NET Framework or .NET 6 Console app. And I already said that the Spanish locale is working fine in this project, it's only the pseudo locale that's not working. |
@uecasm thanks for the clarifications. I think this might be a runtime issue then with regards to globalization. |
I'm dealing the same problem. Is there any work around for it? |
The workaround that I'm using in the interim is using a different locale for the pseudotranslation. Specifically, I'm using |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsIs there an existing issue for this?
Describe the bugAfter creating and publishing resources for Expected BehaviorThe Steps To Reproducehttps://github.com/uecasm/pseudo-wasm This is just the default Edit In particular it does not show the Exceptions (if any)No response .NET Version6.0.200 Anything else?https://stackoverflow.com/questions/71376446/pseudo-localization-in-blazor-webassembly Visual Studio Code 1.65.0
|
@BrennanConroy, @sebastienros it seems like some issue connected with |
@javiercn can you help us take a look at this |
@lewing I can try, but I'm not familiar with the area at all. @ilonatommy do we see a delta between the behavior on .NET core vs .NET on wasm for |
Yes, we do. For Blazor Server with asp NET core 3.1 runtime and Blazor Server with NET 7 runtime it's working fine. For Blazor Wasm with NET 7 runtime the behavior is as described in the issue. It's definitely something that Wasm is doing differently. |
@ilonatommy thanks for the additional details. I have moved the issue to the asp.net core repo so that we can take a look. |
@ericstj doesn't your team own the |
We don't own any of the Extensions components that remained in |
Thanks for contacting us. |
Is there an existing issue for this?
Describe the bug
After creating and publishing resources for
qps-ploc
and setting the default thread locale to it, Blazor WebAssembly'sIStringLocalizer
will render the default language instead. Other languages work as expected.Expected Behavior
The
qps-ploc
locale should work as well (as should the other pseudo locales).Steps To Reproduce
https://github.com/uecasm/pseudo-wasm
This is just the default
blazorwasm
template with localization added from the tutorial.Edit
Program.cs
and comment in exactly one of theculture
lines to see differences in behaviour. Withes-ES
selected, it displays the Spanish translation as expected. With either of the others, it displays the default resources.In particular it does not show the
qps-ploc
translation when that is selected, even though the resources DLL is generated and is included in theblazor.boot.json
manifest.Exceptions (if any)
No response
.NET Version
6.0.200
Anything else?
https://stackoverflow.com/questions/71376446/pseudo-localization-in-blazor-webassembly
Visual Studio Code 1.65.0
The text was updated successfully, but these errors were encountered: