You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
3 years ago
|
using Sanhe.Abp.MenuManagement.Localization;
|
||
|
using Volo.Abp.Localization;
|
||
|
using Volo.Abp.Localization.ExceptionHandling;
|
||
|
using Volo.Abp.Modularity;
|
||
|
using Volo.Abp.PermissionManagement;
|
||
|
using Volo.Abp.Validation;
|
||
|
using Volo.Abp.Validation.Localization;
|
||
|
using Volo.Abp.VirtualFileSystem;
|
||
|
|
||
|
namespace Sanhe.Abp.MenuManagement;
|
||
|
|
||
|
[DependsOn(
|
||
|
typeof(AbpValidationModule),
|
||
|
typeof(AbpPermissionManagementDomainSharedModule)
|
||
|
)]
|
||
|
public class MenuManagementDomainSharedModule : AbpModule
|
||
|
{
|
||
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
||
|
{
|
||
|
options.FileSets.AddEmbedded<MenuManagementDomainSharedModule>();
|
||
|
});
|
||
|
|
||
|
Configure<AbpLocalizationOptions>(options =>
|
||
|
{
|
||
|
options.Resources
|
||
|
.Add<MenuManagementResource>("en")
|
||
|
.AddBaseTypes(typeof(AbpValidationResource))
|
||
|
.AddVirtualJson("/Sanhe/Abp/MenuManagement/Localization/Resources");
|
||
|
});
|
||
|
|
||
|
Configure<AbpExceptionLocalizationOptions>(options =>
|
||
|
{
|
||
|
options.MapCodeNamespace("MenuManagement", typeof(MenuManagementResource));
|
||
|
});
|
||
|
}
|
||
|
}
|