Try our conversational search powered by Generative AI!

Set user interface language for all users


Hi, how do you set global user interface language for the editor/admin interface? The documentation is giving me nothing. Am I suppose to set something in Startup.cs or in appsettings.json?

Jul 10, 2023 16:28

Hi Tam,

Each user can set their own language through the CMS see here for details:

Otherwise it will fallback I believe to the default configuration.

You can customise this see

Checkout how to configure the fallback culture also


Edited, Jul 11, 2023 12:18
Tam Duc Ha Vo - Jul 12, 2023 3:42
Hi, Paul

Aha, so I can just specify «FallbackCulture»: «no» in appsettings.json?

Hi Tam,

That or 

  services.Configure<LocalizationOptions>(o => o.FallbackCulture = new System.Globalization.CultureInfo("no"));

Should do the trick.


Jul 12, 2023 8:16

Hi Paul

Thank you for the quick reply. I have added the line of code in Startup.cs, but it seems like the language in the interface is still in english?

Maybe I'm missing something

Jul 12, 2023 8:38

Use this as part of your middleware in startup.cs.

var globalizationSettings= ServiceLocator.Current.GetInstance<GlobalizationSettingsOptions>();
globalizationSettings.UICultureLanguageCode= "no";

If the user has specifically set a language in their profile then it will prioritize that over the code above.

Jul 12, 2023 13:13

Hi Surjit,

Would this also work?

services.Configure<GlobalizationSettingsOptions>(o => o.UICultureLanguageCode = "no");


Edited, Jul 13, 2023 8:12
Tam Duc Ha Vo - Jul 13, 2023 11:33
That seemed to have done the trick. Thank you!
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.