0
cellero created
Hi,
Do you have any information / advice on changing the language option to be set when a new tenant is registered.
Users for that tenant will inherit the tenant language and will not have the option to alter their language.
Thanks, Roger
1 Answer(s)
-
0
Hi,
You can change tenant's language after tenant creation using below code:
await SettingManager.ChangeSettingForTenantAsync( tenantId, LocalizationSettingNames.DefaultLanguage, languageCode );
If you don't want tenant user's to change language, you need to conditionally hide language selection dropdown if "AbpSession.TenantId.HasValue" is true in related file.
Thanks.