Base solution for your next web application
Open Closed

Disable language for single tenant #9287


User avatar
0
ignasiclos created

Hello,

We've three languages defined in out multi-tenant setup.

Is it possible to disable one of the languages for a single given tenant?

There is no option in the menu :


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    According to the design of the framework, the language cannot be disabled for specific tenants

    You can implement it yourself, such as storing the enabled/disabled language in the tenant's settings, and then hide the language in the UI.

  • User Avatar
    0
    OriAssurant created

    If you populate the AbpLanguages table in the Tenant database and make sure you populate the TenantId column, then you'll be able to disable specific languages just for that tenant (the Edit and Delete options will appear in the drop down you provided a screenshot of).

    You may need to clear the AbpZeroLanguages cache after doing this, I cannot recall.

    We have 12 tenants in our instance and use this approach successfully.