Skip to content

Commit

Permalink
feat(auth): add i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackBear2003 committed Dec 27, 2024
1 parent 7f49b4e commit d3c607a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apollo-portal/src/main/resources/static/cluster/role.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h4 class="modal-title">
(
{{'Common.AppId' | translate }}:
<label ng-bind="pageContext.appId"></label>
{{'Common.Env' | translate }}:
{{'Common.Environment' | translate }}:
<label ng-bind="pageContext.env"></label>
{{'Common.ClusterName' | translate }}:
<label ng-bind="pageContext.clusterName"></label>
Expand Down
7 changes: 3 additions & 4 deletions apollo-portal/src/main/resources/static/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,10 @@
</div>
<div class="col-md-6 col-sm-6 text-right header-buttons">
<a type="button" class="btn btn-default btn-sm" data-tooltip="tooltip" data-placement="bottom"
title="{{'Component.Cluster.GrantTips' | translate }}"
href="{{ '/cluster/role.html' | prefixPath }}?#/appid={{pageContext.appId}}&env={{pageContext.env}}&clusterName={{pageContext.clusterName}}"
ng-show="hasAssignUserPermission">
title="{{'Cluster.GrantTips' | translate }}"
href="{{ '/cluster/role.html' | prefixPath }}?#/appid={{pageContext.appId}}&env={{pageContext.env}}&clusterName={{pageContext.clusterName}}">
<img src="img/assign.png">
{{'Component.Cluster.Grant' | translate }}
{{'Cluster.Grant' | translate }}
</a>
</div>
</div>
Expand Down
9 changes: 9 additions & 0 deletions apollo-portal/src/main/resources/static/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,15 @@
"Cluster.ClusterCreated": "Create cluster successfully",
"Cluster.ClusterCreateFailed": "Failed to create cluster",
"Cluster.PleaseChooseEnvironment": "Please select the environment",
"Cluster.Grant": "Authorize",
"Cluster.GrantTips": "Manage the configuration edit and release permission",
"Cluster.Role.Title": "Cluster Permission Management",
"Cluster.Role.GrantModifyTo": "Permission to edit",
"Cluster.Role.GrantModifyTo2": "(Can edit the configuration)",
"Cluster.Role.GrantPublishTo": "Permission to release",
"Cluster.Role.GrantPublishTo2": "(Can release the configuration)",
"Cluster.Role.Add": "Add",
"Cluster.Role.NoPermission": "You do not have permission!",
"Config.Title": "Apollo Configuration Center",
"Config.AppIdNotFound": "doesn't exist, ",
"Config.ClickByCreate": "click to create",
Expand Down
9 changes: 9 additions & 0 deletions apollo-portal/src/main/resources/static/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,15 @@
"Cluster.ClusterCreated": "集群创建成功",
"Cluster.ClusterCreateFailed": "集群创建失败",
"Cluster.PleaseChooseEnvironment": "请选择环境",
"Cluster.Grant": "授权",
"Cluster.GrantTips": "配置修改、发布权限",
"Cluster.Role.Title": "集群权限管理",
"Cluster.Role.GrantModifyTo": "修改权",
"Cluster.Role.GrantModifyTo2": "(可以修改配置)",
"Cluster.Role.GrantPublishTo": "修改权",
"Cluster.Role.GrantPublishTo2": "(可以修改配置)",
"Cluster.Role.Add": "添加",
"Cluster.Role.NoPermission": "您没有权限哟!",
"Config.Title": "Apollo 配置中心",
"Config.AppIdNotFound": "不存在,",
"Config.ClickByCreate": "点击创建",
Expand Down

0 comments on commit d3c607a

Please sign in to comment.