这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
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.
 
 
 
 
 
 
cKey 409bbe6d78 update Dockerfile 4 years ago
..
LINGYUN/Abp/Localization/Json upgrade abp framework 4.3.0 5 years ago
FodyWeavers.xml update Dockerfile 4 years ago
LINGYUN.Abp.Localization.Json.csproj upgrade abp framework from 4.3.0 to 4.4.0 4 years ago
README.md add dynamic localization support 5 years ago

README.md

LINGYUN.Abp.Localization.Json

模块说明

本地化组件的Json本地文件系统集成

此组件基于PhysicalFileProvider

基础模块

高阶模块

权限定义

功能定义

配置定义

如何使用


    [DependsOn(
       typeof(AbpLocalizationJsonModule))]
    public class YouProjectModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpLocalizationOptions>(options =>
            {
                options.Resources
                    .Add<YouResource>("en")
                    // 一般配置在宿主项目中, 写入宿主项目中存储json文件的绝对路径(受PhysicalFileProvider的限制)
                    // json文件格式与Abp默认json格式保持一致
                    // 详情见: https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.fileproviders.physicalfileprovider?view=dotnet-plat-ext-5.0
                    .AddPhysicalJson(Path.Combine(Directory.GetCurrentDirectory(), "Resources"));
            });

            // 等同于如下方法
            Configure<AbpVirtualFileSystemOptions>(options =>
            {
                // 将本地文件系统映射为虚拟文件系统
                options.FileSets.AddPhysical(Path.Combine(Directory.GetCurrentDirectory(), "Resources"));
            });

            Configure<AbpLocalizationOptions>(options =>
            {
                options.Resources
                    .Add<YouResource>("en")
                    .AddVirtualJson("/Resources"); // json本地化虚拟文件路径
            });
        }
    }


{
  "culture": "en",
  "texts": {
    "Hello China": "Hello China!"
  }
}

更新日志