How to change the language of the controls?
See original GitHub issueHi, I could not find anywhere on code/issues how I can change the display language.
For example, In my case I have these:
I want to change these to chinese also so instead of “On” will be written chinese word of “On”
I tried to guess it. According to your source code here: https://github.com/Kinnara/ModernWpf/blob/a23d5bcc6e8c857161f7c7dfe6b3d18d548259fe/test/ModernWpfTestApp/App.xaml.cs#L37
I tried to guess and did this:
MainWindow.Language = XmlLanguage.GetLanguage("zh-cn");
But it did not woked
Any idea how to do it? And I want to do it at runtime.
Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Switch between languages using the Language bar
Press the Windows logo key and type Control to search for the Control Panel app. · Click Control Panel. · Under Clock, Language,...
Read more >How to Change the Language in Windows
Open the Control Panel. · Click the Clock, Language, and Region option. · Click the Change the display language link. · In the...
Read more >How to change keyboard language in Windows
Click Start and then Control Panel ; In Control Panel, if you are in Category View, click on Switch to Classic View (top...
Read more >Change your language or use multiple languages - Android
Set your language · On your Android phone or tablet, open the Wear OS app. · Under "Settings," tap Google Assistant and then...
Read more >Change your display language on Google - Android
Open the Google app Google Search . · At the top right, tap your Profile icon. · Tap Settings Settings and then Language...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
try
Thread.CurrentThread.CurrentCulture.ToString()
to see which culture info you are.This work for me. The
Language
is my localization project, “zh-Hans” is the resource tag.make sure your target culture info like “zh-Hans”, is also included in the build folder. there will be a folder called
zh-hans/
with aModernWpf.Controls.resources.dll
file in it..NET Core requires the user to install more 130-150 MB I will never understand why I need this