Рет қаралды 5,955
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
github.com/claudiobernasconi/...
🔥 C#/.NET Bootcamp: The Fundamentals & more (Code FRIENDS10 for 10% OFF)*
claudiobernasconi.ch/dotnet-c...
📌 .NET Developer Roadmap
claudiobernasconi.ch/learn-do...
📌 KZfaq Playlists:
The FREE Blazor Crash Course: • The FREE Blazor Crash ...
Blazor: • Blazor
✅ SUBSCRIBE FOR MORE VIDEOS
Subscribe: 🔔 claudiobernasconi.ch/Subscribe
🚀 CONNECT & SUPPORT
Twitter: / chbernasconic
Blog: claudiobernasconi.ch
Newsletter: claudiobernasconi.ch/newsletter
* Affiliate Link: I earn a small commission at no additional cost