WinUI 3 runtime localization

Posted by: talent-letdown.0c on 5 October 2022, 12:30 am EST

    • Post Options:
    • Link

    Posted 5 October 2022, 12:30 am EST

    I am developing WinUI 3 app, currently stuck with localization. Although I wrote separate resw resource files for different cultures and localized with x:Uid I cannot find a way to change language in app runtime.

    Setting Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride only works fine for settings startup language.

    Is runtime localization in WinUI 3 even possible?

  • Posted 7 October 2022, 12:43 am EST

    Hi,

    You need to refresh your page or control to change language at runtime. You can also refer this thread: https://stackoverflow.com/questions/70440433/winui-3-runtime-localization

    Please refer the attached sample for the full implementation of Runtime Localization : CalendarLocalization.zip

    Best Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels