Browse Source
Merge pull request #14843 from abpframework/liangshiwei/blazor-patch
Add missing localization configuration
pull/14849/head
maliming
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
66 additions and
6 deletions
-
modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/AbpFeatureManagementBlazorModule.cs
-
modules/identity/src/Volo.Abp.Identity.Blazor/AbpIdentityBlazorModule.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/AbpPermissionManagementBlazorModule.cs
-
modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/AbpSettingManagementBlazorModule.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/AbpTenantManagementBlazorModule.cs
|
|
|
@ -1,6 +1,9 @@ |
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming; |
|
|
|
using Localization.Resources.AbpUi; |
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming; |
|
|
|
using Volo.Abp.FeatureManagement.Blazor.Settings; |
|
|
|
using Volo.Abp.FeatureManagement.Localization; |
|
|
|
using Volo.Abp.Features; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.SettingManagement.Blazor; |
|
|
|
|
|
|
|
@ -20,5 +23,12 @@ public class AbpFeatureManagementBlazorModule : AbpModule |
|
|
|
{ |
|
|
|
options.Contributors.Add(new FeatureSettingManagementComponentContributor()); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
{ |
|
|
|
options.Resources |
|
|
|
.Get<AbpFeatureManagementResource>() |
|
|
|
.AddBaseTypes(typeof(AbpUiResource)); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,7 +1,10 @@ |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Localization.Resources.AbpUi; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing; |
|
|
|
using Volo.Abp.AutoMapper; |
|
|
|
using Volo.Abp.BlazoriseUI; |
|
|
|
using Volo.Abp.Identity.Localization; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.ObjectExtending; |
|
|
|
using Volo.Abp.ObjectExtending.Modularity; |
|
|
|
@ -39,6 +42,15 @@ public class AbpIdentityBlazorModule : AbpModule |
|
|
|
{ |
|
|
|
options.AdditionalAssemblies.Add(typeof(AbpIdentityBlazorModule).Assembly); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
{ |
|
|
|
options.Resources |
|
|
|
.Get<IdentityResource>() |
|
|
|
.AddBaseTypes( |
|
|
|
typeof(AbpUiResource) |
|
|
|
); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void PostConfigureServices(ServiceConfigurationContext context) |
|
|
|
|
|
|
|
@ -1,6 +1,9 @@ |
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming; |
|
|
|
using Localization.Resources.AbpUi; |
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming; |
|
|
|
using Volo.Abp.AutoMapper; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.PermissionManagement.Localization; |
|
|
|
|
|
|
|
namespace Volo.Abp.PermissionManagement.Blazor; |
|
|
|
|
|
|
|
@ -11,5 +14,15 @@ namespace Volo.Abp.PermissionManagement.Blazor; |
|
|
|
)] |
|
|
|
public class AbpPermissionManagementBlazorModule : AbpModule |
|
|
|
{ |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
{ |
|
|
|
options.Resources |
|
|
|
.Get<AbpPermissionManagementResource>() |
|
|
|
.AddBaseTypes( |
|
|
|
typeof(AbpUiResource) |
|
|
|
); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,10 +1,13 @@ |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Localization.Resources.AbpUi; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming; |
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing; |
|
|
|
using Volo.Abp.AutoMapper; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.SettingManagement.Blazor.Menus; |
|
|
|
using Volo.Abp.SettingManagement.Blazor.Settings; |
|
|
|
using Volo.Abp.SettingManagement.Localization; |
|
|
|
using Volo.Abp.UI.Navigation; |
|
|
|
|
|
|
|
namespace Volo.Abp.SettingManagement.Blazor; |
|
|
|
@ -39,5 +42,14 @@ public class AbpSettingManagementBlazorModule : AbpModule |
|
|
|
{ |
|
|
|
options.Contributors.Add(new EmailingPageContributor()); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
{ |
|
|
|
options.Resources |
|
|
|
.Get<AbpSettingManagementResource>() |
|
|
|
.AddBaseTypes( |
|
|
|
typeof(AbpUiResource) |
|
|
|
); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,11 +1,15 @@ |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Localization.Resources.AbpUi; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing; |
|
|
|
using Volo.Abp.AutoMapper; |
|
|
|
using Volo.Abp.FeatureManagement.Blazor; |
|
|
|
using Volo.Abp.FeatureManagement.Localization; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.ObjectExtending; |
|
|
|
using Volo.Abp.ObjectExtending.Modularity; |
|
|
|
using Volo.Abp.TenantManagement.Blazor.Navigation; |
|
|
|
using Volo.Abp.TenantManagement.Localization; |
|
|
|
using Volo.Abp.Threading; |
|
|
|
using Volo.Abp.UI.Navigation; |
|
|
|
|
|
|
|
@ -38,6 +42,15 @@ public class AbpTenantManagementBlazorModule : AbpModule |
|
|
|
{ |
|
|
|
options.AdditionalAssemblies.Add(typeof(AbpTenantManagementBlazorModule).Assembly); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
{ |
|
|
|
options.Resources |
|
|
|
.Get<AbpTenantManagementResource>() |
|
|
|
.AddBaseTypes( |
|
|
|
typeof(AbpFeatureManagementResource), |
|
|
|
typeof(AbpUiResource)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void PostConfigureServices(ServiceConfigurationContext context) |
|
|
|
|