Browse Source
feat: add Culture parameter to multiple management pages for localization support
pull/25235/head
maliming
4 weeks ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
6 changed files with
16 additions and
0 deletions
-
modules/account/src/Volo.Abp.Account.Blazor.MudBlazor/Pages/Account/AccountManage.razor.cs
-
modules/basic-theme/src/Volo.Abp.AspNetCore.Components.WebAssembly.MudBlazorBasicTheme/Pages/Authentication.razor
-
modules/identity/src/Volo.Abp.Identity.Blazor.MudBlazor/Pages/Identity/RoleManagement.razor.cs
-
modules/identity/src/Volo.Abp.Identity.Blazor.MudBlazor/Pages/Identity/UserManagement.razor.cs
-
modules/setting-management/src/Volo.Abp.SettingManagement.Blazor.MudBlazor/Pages/SettingManagement/SettingManagement.razor.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor.MudBlazor/Pages/TenantManagement/TenantManagement.razor.cs
|
|
@ -12,6 +12,9 @@ namespace Volo.Abp.Account.Blazor.MudBlazor.Pages.Account; |
|
|
|
|
|
|
|
|
public partial class AccountManage |
|
|
public partial class AccountManage |
|
|
{ |
|
|
{ |
|
|
|
|
|
[Parameter] |
|
|
|
|
|
public string? Culture { get; set; } |
|
|
|
|
|
|
|
|
[Inject] protected IProfileAppService ProfileAppService { get; set; } = default!; |
|
|
[Inject] protected IProfileAppService ProfileAppService { get; set; } = default!; |
|
|
|
|
|
|
|
|
[Inject] protected IUiMessageService UiMessageService { get; set; } = default!; |
|
|
[Inject] protected IUiMessageService UiMessageService { get; set; } = default!; |
|
|
|
|
|
@ -5,6 +5,7 @@ |
|
|
<RemoteAuthenticatorView Action="@Action" OnLogInSucceeded="OnLogInSucceeded" OnLogOutSucceeded="OnLogOutSucceeded" /> |
|
|
<RemoteAuthenticatorView Action="@Action" OnLogInSucceeded="OnLogInSucceeded" OnLogOutSucceeded="OnLogOutSucceeded" /> |
|
|
@inject WebAssemblyCachedApplicationConfigurationClient WebAssemblyCachedApplicationConfigurationClient |
|
|
@inject WebAssemblyCachedApplicationConfigurationClient WebAssemblyCachedApplicationConfigurationClient |
|
|
@code{ |
|
|
@code{ |
|
|
|
|
|
[Parameter] public string? Culture { get; set; } |
|
|
[Parameter] public string? Action { get; set; } |
|
|
[Parameter] public string? Action { get; set; } |
|
|
|
|
|
|
|
|
private async Task OnLogInSucceeded(RemoteAuthenticationState state) |
|
|
private async Task OnLogInSucceeded(RemoteAuthenticationState state) |
|
|
|
|
|
@ -17,6 +17,9 @@ namespace Volo.Abp.Identity.Blazor.MudBlazor.Pages.Identity; |
|
|
|
|
|
|
|
|
public partial class RoleManagement |
|
|
public partial class RoleManagement |
|
|
{ |
|
|
{ |
|
|
|
|
|
[Parameter] |
|
|
|
|
|
public string? Culture { get; set; } |
|
|
|
|
|
|
|
|
protected const string PermissionProviderName = "R"; |
|
|
protected const string PermissionProviderName = "R"; |
|
|
|
|
|
|
|
|
protected PermissionManagementModal? PermissionManagementModal; |
|
|
protected PermissionManagementModal? PermissionManagementModal; |
|
|
|
|
|
@ -21,6 +21,9 @@ namespace Volo.Abp.Identity.Blazor.MudBlazor.Pages.Identity; |
|
|
|
|
|
|
|
|
public partial class UserManagement |
|
|
public partial class UserManagement |
|
|
{ |
|
|
{ |
|
|
|
|
|
[Parameter] |
|
|
|
|
|
public string? Culture { get; set; } |
|
|
|
|
|
|
|
|
protected const string PermissionProviderName = "U"; |
|
|
protected const string PermissionProviderName = "U"; |
|
|
|
|
|
|
|
|
protected const string DefaultSelectedTab = "UserInformations"; |
|
|
protected const string DefaultSelectedTab = "UserInformations"; |
|
|
|
|
|
@ -13,6 +13,9 @@ namespace Volo.Abp.SettingManagement.Blazor.MudBlazor.Pages.SettingManagement; |
|
|
|
|
|
|
|
|
public partial class SettingManagement |
|
|
public partial class SettingManagement |
|
|
{ |
|
|
{ |
|
|
|
|
|
[Parameter] |
|
|
|
|
|
public string? Culture { get; set; } |
|
|
|
|
|
|
|
|
[Inject] |
|
|
[Inject] |
|
|
protected IServiceProvider ServiceProvider { get; set; } = default!; |
|
|
protected IServiceProvider ServiceProvider { get; set; } = default!; |
|
|
|
|
|
|
|
|
|
|
|
@ -17,6 +17,9 @@ namespace Volo.Abp.TenantManagement.Blazor.MudBlazor.Pages.TenantManagement; |
|
|
|
|
|
|
|
|
public partial class TenantManagement |
|
|
public partial class TenantManagement |
|
|
{ |
|
|
{ |
|
|
|
|
|
[Parameter] |
|
|
|
|
|
public string? Culture { get; set; } |
|
|
|
|
|
|
|
|
protected const string FeatureProviderName = "T"; |
|
|
protected const string FeatureProviderName = "T"; |
|
|
|
|
|
|
|
|
protected bool HasManageFeaturesPermission; |
|
|
protected bool HasManageFeaturesPermission; |
|
|
|