Hi,
On disabling a language from host admin, the language selection dropdown gets hidden for tenants which are using the disabled language. How can I set en as a default language for all the existing tenants?
4 Answer(s)
-
0
How can I set en as a default language for all the existing tenants?
You can use the code to change the tenant's
LocalizationSettingNames.DefaultLanguagesettings or directly modify the database's AbpSettings table.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
@maliming, I used the following SQL:
Update AbpSettings Set Value = 'en' where Name = 'Abp.Localization.DefaultLanguageName'But this does not seem to work. The language is still different. Can you provide me the sql?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
1
There is no problem with your sql statement, you may need to clear the cache.
Please note that the default language setting is not the highest priority. See: https://aspnetboilerplate.com/Pages/Documents/Localization#how-the-current-language-is-determined
When host disables a language, it can still be used by QueryString (
culture=es-MX&ui-culture=es-MX), etc. I will investigate whether this behavior is a problem.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thanks maliming. It worked after clearing cache
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)