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.
42 lines
1.2 KiB
42 lines
1.2 KiB
2 years ago
|
using BaseService.Localization;
|
||
|
using Volo.Abp.Localization;
|
||
|
using Volo.Abp.Modularity;
|
||
2 years ago
|
using Volo.Abp.PermissionManagement.Identity;
|
||
2 years ago
|
using Volo.Abp.Validation.Localization;
|
||
|
using Volo.Abp.VirtualFileSystem;
|
||
|
|
||
|
namespace BaseService
|
||
|
{
|
||
|
[DependsOn(
|
||
2 years ago
|
typeof(AbpPermissionManagementDomainIdentityModule)
|
||
2 years ago
|
)]
|
||
2 years ago
|
public class BaseServiceDomainModule : AbpModule
|
||
2 years ago
|
{
|
||
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
2 years ago
|
ConfigureVirtualFileSystem();
|
||
2 years ago
|
|
||
2 years ago
|
ConfigureLocalization();
|
||
|
}
|
||
|
|
||
|
private void ConfigureLocalization()
|
||
|
{
|
||
2 years ago
|
Configure<AbpLocalizationOptions>(options =>
|
||
|
{
|
||
|
options.Resources
|
||
|
.Add<BaseServiceResource>("zh-Hans")
|
||
|
.AddBaseTypes(typeof(AbpValidationResource))
|
||
|
.AddVirtualJson("/Localization/BaseService");
|
||
|
});
|
||
|
}
|
||
2 years ago
|
|
||
|
private void ConfigureVirtualFileSystem()
|
||
|
{
|
||
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
||
|
{
|
||
|
options.FileSets.AddEmbedded<BaseServiceDomainModule>("BaseService");
|
||
|
});
|
||
|
}
|
||
2 years ago
|
}
|
||
|
}
|