From d3640b85d8e9bdc565d969cf0cbd2b4c95081f04 Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 6 Mar 2026 11:25:38 +0800 Subject: [PATCH] feat: Optimize localization resources - Adjust the localization resource path of OpenIddict Account - Adjust the localization resource path of Elsa Designer --- .../AbpAccountWebOpenIddictModule.cs | 4 ++-- .../Localization/Resources/{ => OpenIddict}/en.json | 0 .../Localization/Resources/{ => OpenIddict}/zh-Hans.json | 0 .../elsa/LINGYUN.Abp.Elsa.Designer/AbpElsaDesignerModule.cs | 4 ++-- .../Localization/Resources/{ => ElsaDesigner}/en.json | 0 .../Localization/Resources/{ => ElsaDesigner}/zh-Hans.json | 0 .../elsa/LINGYUN.Abp.Elsa.Designer/Pages/Elsa/Index.cshtml | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) rename aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/{ => OpenIddict}/en.json (100%) rename aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/{ => OpenIddict}/zh-Hans.json (100%) rename aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/{ => ElsaDesigner}/en.json (100%) rename aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/{ => ElsaDesigner}/zh-Hans.json (100%) diff --git a/aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/AbpAccountWebOpenIddictModule.cs b/aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/AbpAccountWebOpenIddictModule.cs index 81a6cb805..66b4779f2 100644 --- a/aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/AbpAccountWebOpenIddictModule.cs +++ b/aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/AbpAccountWebOpenIddictModule.cs @@ -34,7 +34,7 @@ public class AbpAccountWebOpenIddictModule : AbpModule { Configure(options => { - options.FileSets.AddEmbedded(); + options.FileSets.AddEmbedded("LINGYUN.Abp.Account.Web.OpenIddict"); }); Configure(options => @@ -52,7 +52,7 @@ public class AbpAccountWebOpenIddictModule : AbpModule { options.Resources .Get() - .AddVirtualJson("/Localization/Resources"); + .AddVirtualJson("/Localization/Resources/OpenIddict"); }); Configure(options => diff --git a/aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/en.json b/aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/OpenIddict/en.json similarity index 100% rename from aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/en.json rename to aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/OpenIddict/en.json diff --git a/aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/zh-Hans.json b/aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/OpenIddict/zh-Hans.json similarity index 100% rename from aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/zh-Hans.json rename to aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/OpenIddict/zh-Hans.json diff --git a/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/AbpElsaDesignerModule.cs b/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/AbpElsaDesignerModule.cs index e02572cfd..45e0b64aa 100644 --- a/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/AbpElsaDesignerModule.cs +++ b/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/AbpElsaDesignerModule.cs @@ -34,14 +34,14 @@ public class AbpElsaDesignerModule : AbpModule { Configure(options => { - options.FileSets.AddEmbedded(); + options.FileSets.AddEmbedded("LINGYUN.Abp.Elsa.Designer"); }); Configure(options => { options.Resources .Get() - .AddVirtualJson("/Localization/Resources"); + .AddVirtualJson("/Localization/Resources/ElsaDesigner"); }); Configure(options => diff --git a/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/en.json b/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/ElsaDesigner/en.json similarity index 100% rename from aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/en.json rename to aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/ElsaDesigner/en.json diff --git a/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/zh-Hans.json b/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/ElsaDesigner/zh-Hans.json similarity index 100% rename from aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/zh-Hans.json rename to aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/ElsaDesigner/zh-Hans.json diff --git a/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Pages/Elsa/Index.cshtml b/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Pages/Elsa/Index.cshtml index 7d1ec89e9..c022de8b6 100644 --- a/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Pages/Elsa/Index.cshtml +++ b/aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Pages/Elsa/Index.cshtml @@ -46,6 +46,6 @@ // Some components publish DOM events that we can handle directly: elsaStudioRoot.addEventListener('workflow-changed', e => { - console.log('Workflow model changed! New model: ${e.detail}'); + console.log(`Workflow model changed! New model: ${e.detail}`); }) \ No newline at end of file