- What is your product version? v10.2.0
- What is your product type (Angular or MVC)? Angular
- What is product framework type (.net framework or .net core)? .net core
If issue related with ABP Framework
- What is ABP Framework version? v10.2.0
Hi everyone,
I want to add custom language add and delete feature for multi tenant. Can you help me how to do this?
Thanks.
5 Answer(s)
-
0
Hi @QuickApp
As I understand, you want Tenants to add/delete languages. We deleted this feature on purpose becasue when a Tenant adds or deletes a language, the app must be restarted. This is required because of a restriction of ASP.NET Core.
If you want, you can go to source code of language list page and remove the condition from add new langauge button.
-
0
Hi @ismcagdas
As you said, I removed the authorization restriction, thank you.
Now I'm trying to add some languages by default for new tenant registration. (Turkish, English etc.)
But I was not successful, I would like your help in this matter too.
Best regards..
-
0
Hi,
If same language will be created for each tenant registration, you can add it to https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.EntityFrameworkCore/Migrations/Seed/Host/DefaultLanguagesCreator.cs
-
0
Hi,
Maybe I didn't understand what you said, sorry :)
This database is running when it is being created for the first time. (saves tenantId as null) I want to add a few default languages like default roles every time a tenant is created.
Thanks.
-
0
Hi @QuickApp
Just like static roles, this class should be executed when you create a new tenant with a separate database. Did you try it ? If so, could you share the result ?