Blazor Localization in .NET 8 & Blazor Server

Published: 07 December 2023
on channel: Claudio Bernasconi
8,414
230

We will learn how to localize a Blazor application in .NET 8. The same code is also applicable to .NET 7 Blazor Server. We use regular .NET NuGet packages and create regular resource files.

For Blazor WebAssembly, you need to tweak the code, it won't work as shown in this video.

00:00 What We Build in This Video
00:45 Creating the Blazor Web App in Visual Studio
01:39 Install & Setup the Required Localization Nuget Package
02:54 Create the Translation Files
06:03 Apply Translated Texts in Blazor Components
08:07 The CultureSelector Component
10:15 Add a Controller to Handle Culture Changes
12:32 Testing the Application
13:06 Conclusion

📌 Source Code
https://github.com/claudiobernasconi/...

🔥 C#/.NET Bootcamp: The Fundamentals & more (Code FRIENDS10 for 10% OFF)*
https://claudiobernasconi.ch/dotnet-c...

📌 .NET Developer Roadmap
https://claudiobernasconi.ch/learn-do...

📌 YouTube Playlists:
The FREE Blazor Crash Course:    • The FREE Blazor Crash Course (.NET 5)...  
Blazor:    • Blazor  

✅ SUBSCRIBE FOR MORE VIDEOS
Subscribe: 🔔 https://claudiobernasconi.ch/Subscribe

🚀 CONNECT & SUPPORT
Twitter:   / chbernasconic  
Blog: https://claudiobernasconi.ch
Newsletter: https://claudiobernasconi.ch/newsletter

Affiliate Link: I earn a small commission at no additional cost


Watch video Blazor Localization in .NET 8 & Blazor Server online without registration, duration hours minute second in high quality. This video was added by user Claudio Bernasconi 07 December 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8,41 once and liked it 23 people.