We have a need for some cultures that are not available in the back-office culture list. For example we have a need for a Russian site for the Estonian market, locale would be ru-ee. Is there a way to do it in the back-office or can it be done through code?
Litium version: 6
Litium lists the languages that are avaliable in .NET, you would need to add that language/culture on the server to make it avaliable in Litium.
Verify that your hosting provider allow you to change this.
We’ve created and registered a custom culture for the Canary Islands (es-CN) as described here. We’re able to use it in code just fine by doing var culture = new System.Globalization.CultureInfo("es-CN");
, but still it does not show up in the list of available countries in backoffice. Are we missing some step needed in order to get backoffice to become aware of “es-CN”?
For Litium 7 this is changed to be populated from the Litium.Globalization.IsoCountryService
. For Litium 6 the language list are populated from CultureInfo[] cultureInfoArray = CultureInfo.GetCultures(CultureTypes.SpecificCultures);
Ok, but then the question becomes: Why isn’t the IsoCountryService
picking up our custom culture?
IsoCountryService
is not fetching the countries from the culture information and instead using a static list.
Easiest is that you will make a decorator for the service and append the country that you want to add.
1 Like