Back to Browse

Blazor Localization in .NET 8 & Blazor Server

15.8K views
Dec 7, 2023
13:58

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/BlazorLocalization 🔥 C#/.NET Bootcamp: The Fundamentals & more (Code FRIENDS10 for 10% OFF)* https://claudiobernasconi.ch/dotnet-course 📌 .NET Developer Roadmap https://claudiobernasconi.ch/learn-dotnet 📌 YouTube Playlists: The FREE Blazor Crash Course: https://www.youtube.com/watch?v=89Klc6WHElw&list=PLwISgxnkpZGL_LhTQCWwp-WCzupv7lcp0 Blazor: https://www.youtube.com/playlist?list=PLwISgxnkpZGITT6pELfCeQ6qK0G3ujldZ ✅ SUBSCRIBE FOR MORE VIDEOS Subscribe: 🔔 https://claudiobernasconi.ch/Subscribe 🚀 CONNECT & SUPPORT Twitter: https://twitter.com/CHBernasconiC Blog: https://claudiobernasconi.ch Newsletter: https://claudiobernasconi.ch/newsletter * Affiliate Link: I earn a small commission at no additional cost

Download

1 formats

Video Formats

360pmp430.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Blazor Localization in .NET 8 & Blazor Server | NatokHD