Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing documentation about switching language dynamically #392

Open
ipizhenko opened this issue Sep 8, 2023 · 2 comments
Open

Missing documentation about switching language dynamically #392

ipizhenko opened this issue Sep 8, 2023 · 2 comments

Comments

@ipizhenko
Copy link

I'm trying to use WFPLocalizeExtension.
I've localized my strings using steps in tutiral.
Now I have an ultimate question for which I could not find answer in the docs:
How do I switch application language dynamically at runtime?

@ipizhenko
Copy link
Author

ipizhenko commented Sep 8, 2023

ChatGPT suggests something like this:

using WPFLocalizeExtension.Engine;

// Set the culture to German
LocalizeDictionary.Instance.Culture = new CultureInfo("de-DE");

and that seems to work.

Please include this somewhere into documentation.

@Fuitad
Copy link

Fuitad commented Oct 20, 2023

For what it's worth, I've had more success with LocalizeDictionary.Instance.SetCultureCommand.Execute("de-DE");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants