Back to Devexpress

Runtime Language Switcher

expressappframework-403027-localization-runtime-language-switcher.md

latest834 B
Original Source

Runtime Language Switcher

  • Jun 01, 2022

The Language Switcher is displayed in:

  • The login page

  • The settings menu

To enable the runtime language switcher, set the DevExpress: ExpressApp: ShowLanguageSwitcher value to True in appsettings.json:

"DevExpress": { 
    "ExpressApp": { 
        "Languages": "en;de", 
        "ShowLanguageSwitcher": true,  
    } 
}

The Languages section must contain at least 2 supported languages. These languages will be displayed in the Language switcher’s drop-down list.

The language name is retrieved from CultureInfo.NativeName.

Note

The runtime language switcher requires that IModelApplication.PreferredLanguage is set to (User language).

See Also

IXafCultureInfoService