Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Langage set at Tenant Level #3566


User avatar
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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.