Hi,
We are having issues changing languages on version 8.2 of aspnetzero, our setup is multi-tenant with different default languages. What we need is to limit certain languages per tenant but we are having issues doing it, we've tried bypassing it on the database but still it doesn't work.
Please advise,Thanks.
5 Answer(s)
-
0
Hi,
Could you share how you are tryign to do this ? A tenant can have a subset of languages defined for the Host.
-
0
Hi,
Here's a sample of what we are trying to do
tenant 1
- eng
- chinese
tenant 2
- eng
- eng-UK
tenant 3
- eng
we tried disabling the languages on the tenant db but still it doesn't limit the languages avaible per tenant
-
0
Hi @zyrel.sermon
Could yoıu share the AbpLanguages table data as a screenshot ? Please include TenantId field in the screenshot.
-
0
-
0
Hi,
In this method, we are merging Languages defined in Host side and Tenant side. If you don't want to use languages defined in Host side for any tenant, you can create your own LanguageManager inherited from ApplicationLanguageManager, replace the default implementation and override GetLanguageDictionary method.