- ABP Framework version: v9.0.0
- UI Type: Angular
- Database System: EF Core (PostgreSQL)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
Is it possible to change localizations of the tenant related text on the login screen?
6 Answer(s)
-
1
Hi,
Localizations comes from here: https://github.com/abpframework/abp/blob/664af59cd7778b40b635540d6213d7b6b0985dea/framework/src/Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy/Volo/Abp/AspNetCore/Mvc/UI/MultiTenancy/Localization/en.json#L4-L11
You can add this keys into localization json file and override
AbpUiMultiTenancyResource
by following this documentation: https://abp.io/docs/latest/framework/fundamentals/localization#extending-existing-resourceConfigure<AbpLocalizationOptions>(options => { // ... options.Resources .Get<AbpUiMultiTenancyResource>() .AddVirtualJson("/Localization/YourProjectResource"); // ... });
Note that: Your
.Domain.Shared
module probably won't have reference forAbpUiMultiTenancyResource
class. So, you'll need to do that in the host application such as.Web
orHttpApi.Host
or.AuthServer
according to your configuration. -
1
-
0
Thanks!
-
0
I added this code in my AuthServerModule.cs ConfigureServices method
and this in my AuthServer.csproj
Also added this in my HttpApiHostModule.cs ConfigureServices method
and this in my HttpApi.Host.csproj
But it didn't work, the localization texts doesn't appear on the UI, neither are on the database.
I tried creating a development environment from scratch, cleaning and building the solution, deleting existing databases, clearing redis cache and running dbmigrator then authserver, api and angular frontend.
-
0
-
0
Should we assume that this ticket is resolved?