Replies: 7 comments 132 replies
-
Sounds like this is related to supporting multiple languages/cultures on the web site level as well as admin/hosting level. Do we have the (default) language/culture setting in the framework? can we switch the language/culture dynamically on the website and hosting level? I suppose the above is required infrastructure feature to enable static localization. Quick link/reference: https://docs.microsoft.com/en-us/aspnet/core/blazor/globalization-localization?view=aspnetcore-5.0 |
Beta Was this translation helpful? Give feedback.
-
Here are some initial ideas for the localization feature:
From the link above:
The plan is to use ".NET's resource system" to support localized Blazor UI Component (localized razor page resx) for both core framework and external modules. |
Beta Was this translation helpful? Give feedback.
-
While we are exploring the depth of Static Localization using .NET Core Resource Files, I'd like to ask what might be the options to localize the content and data? As an application framework, we might have to take one approach and recommend/request module developers to use the same. Is it possible to localize the UI and Content in the same way? |
Beta Was this translation helpful? Give feedback.
-
I'm glad to announce that the localization is now supported in both Blazor Server-Side & Web Assembly with that this long discussion could be answered and closed now |
Beta Was this translation helpful? Give feedback.
-
Thanks @hishamco for the hint. The missing part in my external Module Project was AssemblyInfo.cs with the Pull request PR#7 in Oqtane.Blogs contains the necessary settings for localization. |
Beta Was this translation helpful? Give feedback.
-
I suggest to change the module creator if @sbwalker agrees to avoid such issues in custom modules |
Beta Was this translation helpful? Give feedback.
-
In case any one out there is looking for how to retrieve common localization strings also for Oqtane Controls like <ActionLink>: |
Beta Was this translation helpful? Give feedback.
-
Static localization is the ability to customize the static text in the user interface of an application. Usually this is for localizing the user interface into other languages, however it can also be used to customize terminology or descriptions to make them more applicable to your audience. Note that static localization is not intended to be a solution for user generated content.
As per the Oqtane philosophy, the solution should leverage standard Microsoft approaches as much as possible. It should also leverage encapsulation in terms of minimizing the number of individual assets which need to be deployed. And to ensure a consistent development experience, static localization should follow the same pattern for the core framework as it does for external modules.
Beta Was this translation helpful? Give feedback.
All reactions