Thanks for the great tutorial. My app is fairly big, could you show an example with the resx per page? Or is there no difference just make a resx for all pages?
Nice tutorial. Really helped me. Thanks! But I can only make this work with global resource files. How can I use resource files for different pages? Can I set multiple paths for the options.ResourcesPath in Program.cs somehow?
After adding the CultureSelector to the main layout, it's not visible on the page. I've tried to add a razor.css file under the CultureSelector, and copying the stylesheet from the MainLayout.razor.css fle, but still nothing. Have anybody experinced this?
Found the solution! I had a separate ShopLayout.Razor component in the same directory as the MainLayout, and I am using that one for setting up the layout. In my case I had to add the in the ShopLayour.razor to make it visible. So if you have YourOwnLayout.razor, you have to add the there and not to the MainLayout.razor :)
I have added a new repo for Localization in Blazor Server: github.com/carlfranklin/LocalizationInBlazorServer
There's a bit of a difference.
Too good - so clear and easy to follow and to the point. 🙂
Thanks!
This is an awesome tutorial. Thanks!
How to do it without reloading the page after language change?
Excellent, can you show us sample with Static Server Rendering?
Thanks for the great tutorial. My app is fairly big, could you show an example with the resx per page? Or is there no difference just make a resx for all pages?
You got it! That’s exactly what you do.
@@DeveloperExpress It works like charm, thanks :)
Beautiful stuff Carl !!! Just one question : For Blazor server, can we still use the same class - WebAssemblyHostExtensions ??
No there's another way to do it in Blazor Server. I'll update the repo
I have added a new repo for Localization in Blazor Server: github.com/carlfranklin/LocalizationInBlazorServer
There's a bit of a difference.
@@carlfranklin7894 Many thanks Carl, you're a champ 🏆
Nice tutorial. Really helped me. Thanks!
But I can only make this work with global resource files.
How can I use resource files for different pages? Can I set multiple paths for the options.ResourcesPath in Program.cs somehow?
hey do you have any sample for arabic and English with RTL and LTL changes Application
After adding the CultureSelector to the main layout, it's not visible on the page. I've tried to add a razor.css file under the CultureSelector, and copying the stylesheet from the MainLayout.razor.css fle, but still nothing. Have anybody experinced this?
Found the solution! I had a separate ShopLayout.Razor component in the same directory as the MainLayout, and I am using that one for setting up the layout. In my case I had to add the in the ShopLayour.razor to make it visible. So if you have YourOwnLayout.razor, you have to add the there and not to the MainLayout.razor :)