jsakamoto, thank you so much. it is so easy to localize for blazor.
I want to add a little. If language suggests right-to-left. For example Hebrew. To Blazar-Clien need
1) copy site.css => site-rtl.css
2) in site-rtl.css add in app 2 line
3) MainLayout.razor start so
@inject Toolbelt.Blazor.I18nText.I18nText I18nText
@if (CurrentLang == "he")
<link href="css/site.css" rel="stylesheet"/>
4) in index.html - delete
<link href="css/site.css" rel="stylesheet" />
5) "he" - in my case Hebrew -language suggests right-to-left GUI
Thank you very much for your this addition
Can you please post or send a small example showing how to change the language on at run time from within a Blazer server-side component, because i could not understand how to wire it with the API.
Thank you very much.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.