Browse Source
Merge pull request #1437 from colinin/localization-resource
feat: Optimize localization resources
pull/1442/head
yx lin
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with
5 additions and
5 deletions
-
aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/AbpAccountWebOpenIddictModule.cs
-
aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/OpenIddict/en.json
-
aspnet-core/modules/account/LINGYUN.Abp.Account.Web.OpenIddict/Localization/Resources/OpenIddict/zh-Hans.json
-
aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/AbpElsaDesignerModule.cs
-
aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/ElsaDesigner/en.json
-
aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Localization/Resources/ElsaDesigner/zh-Hans.json
-
aspnet-core/modules/elsa/LINGYUN.Abp.Elsa.Designer/Pages/Elsa/Index.cshtml
|
|
@ -34,7 +34,7 @@ public class AbpAccountWebOpenIddictModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
Configure<AbpVirtualFileSystemOptions>(options => |
|
|
Configure<AbpVirtualFileSystemOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.FileSets.AddEmbedded<AbpAccountWebOpenIddictModule>(); |
|
|
options.FileSets.AddEmbedded<AbpAccountWebOpenIddictModule>("LINGYUN.Abp.Account.Web.OpenIddict"); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
Configure<RazorViewEngineOptions>(options => |
|
|
Configure<RazorViewEngineOptions>(options => |
|
|
@ -52,7 +52,7 @@ public class AbpAccountWebOpenIddictModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
options.Resources |
|
|
options.Resources |
|
|
.Get<AbpOpenIddictResource>() |
|
|
.Get<AbpOpenIddictResource>() |
|
|
.AddVirtualJson("/Localization/Resources"); |
|
|
.AddVirtualJson("/Localization/Resources/OpenIddict"); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
Configure<AbpBundlingOptions>(options => |
|
|
Configure<AbpBundlingOptions>(options => |
|
|
|
|
|
@ -34,14 +34,14 @@ public class AbpElsaDesignerModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
Configure<AbpVirtualFileSystemOptions>(options => |
|
|
Configure<AbpVirtualFileSystemOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.FileSets.AddEmbedded<AbpElsaDesignerModule>(); |
|
|
options.FileSets.AddEmbedded<AbpElsaDesignerModule>("LINGYUN.Abp.Elsa.Designer"); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.Resources |
|
|
options.Resources |
|
|
.Get<ElsaResource>() |
|
|
.Get<ElsaResource>() |
|
|
.AddVirtualJson("/Localization/Resources"); |
|
|
.AddVirtualJson("/Localization/Resources/ElsaDesigner"); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
Configure<AbpNavigationOptions>(options => |
|
|
Configure<AbpNavigationOptions>(options => |
|
|
|
|
|
@ -46,6 +46,6 @@ |
|
|
|
|
|
|
|
|
// Some components publish DOM events that we can handle directly: |
|
|
// Some components publish DOM events that we can handle directly: |
|
|
elsaStudioRoot.addEventListener('workflow-changed', e => { |
|
|
elsaStudioRoot.addEventListener('workflow-changed', e => { |
|
|
console.log('Workflow model changed! New model: ${e.detail}'); |
|
|
console.log(`Workflow model changed! New model: ${e.detail}`); |
|
|
}) |
|
|
}) |
|
|
</script> |
|
|
</script> |