.NET MAUI Blazor Switch Language In-App: Here's How!

.NET MAUI Blazor Switch Language In-App: Here's How!

Gerald Versluis

55 лет назад

7,126 Просмотров

You implemented localization on your .NET MAUI app, but are now wondering: how do I switch the language dynamically in app? This video got you covered! We will learn how to show a list of the supported languages, how to switch between the languages and how to persist the configured language with .NET MAUI Essentials.

💝 Join this channel to get access to perks:
https://www.youtube.com/channel/GeraldVersluis/join

Disclaimer: this channel is done on personal title, in my free time, and not officially affiliated with or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.

🛑 Don't forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVersluis/?sub_confirmation=1

🐦 Follow me on Twitter: https://twitter.com/jfversluis
🤝 Join the Discord server: https://discord.gg/2cAyTGNHBD

🔗 Links
Sample App Repository: https://github.com/jfversluis/MauiBlazorDynamicLocalizationSample
Localization Video: https://www.youtube.com/watch?v=EHoO9hG-Uzo&list=PLfbOp004UaYWu-meDkRN6_Y1verl96npI&index=3

⏱ Timestamps
00:00 - Switch Language in .NET MAUI Blazor
00:19 - Revisit Existing Code
02:14 - Implement Dynamic Switching of Languages
02:50 - Add Language Selection UI
03:59 - Implement Switching the Language
07:19 - Language Switching Demo
08:15 - Persisting Selected Language Setting
12:07 - Persistance Demo
13:24 - Does This Work on Regular Blazor?

🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD

🙋‍♂️ Also find my...
Blog: https://blog.verslu.is
Twitch: https://twitch.tv/jfversluis
All the rest: https://jfversluis.dev

#dotnetmaui #localization #blazor #dotnet6 #resx

Тэги:

#.net_maui #dotnet_maui #.net_maui_blazor #.net_6 #.net_maui_blazor_apps #.net_maui_getting_started #dotnet_maui_getting_started #dotnet_maui_blazor #.net_maui_blazor_webview #.net_6_maui #dotnet_maui_tutorial #blazor_hybrid_app #.net_6_xamarin #dotnet_maui_localization #.NET_MAUI_Localization #blazor_localization #blazor_localization_resx #.net_maui_blazor_localization #dotnet_maui_blazor_localization #.NET_MAUI_Switch_language_in_app #dotnet_maui_switch_langauge_in_app
Ссылки и html тэги не поддерживаются


Комментарии: