From d3c607a6206f3eda3fe6f6a9cf953183720ff760 Mon Sep 17 00:00:00 2001
From: luke <348358584@qq.com>
Date: Sat, 28 Dec 2024 02:10:20 +0800
Subject: [PATCH] feat(auth): add i18n
---
.../src/main/resources/static/cluster/role.html | 2 +-
apollo-portal/src/main/resources/static/config.html | 7 +++----
apollo-portal/src/main/resources/static/i18n/en.json | 9 +++++++++
apollo-portal/src/main/resources/static/i18n/zh-CN.json | 9 +++++++++
4 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/apollo-portal/src/main/resources/static/cluster/role.html b/apollo-portal/src/main/resources/static/cluster/role.html
index 0ff9e48e3f0..5599f5279bb 100644
--- a/apollo-portal/src/main/resources/static/cluster/role.html
+++ b/apollo-portal/src/main/resources/static/cluster/role.html
@@ -44,7 +44,7 @@
(
{{'Common.AppId' | translate }}:
- {{'Common.Env' | translate }}:
+ {{'Common.Environment' | translate }}:
{{'Common.ClusterName' | translate }}:
diff --git a/apollo-portal/src/main/resources/static/config.html b/apollo-portal/src/main/resources/static/config.html
index ae0153363e2..d6fa259ef47 100644
--- a/apollo-portal/src/main/resources/static/config.html
+++ b/apollo-portal/src/main/resources/static/config.html
@@ -198,11 +198,10 @@
diff --git a/apollo-portal/src/main/resources/static/i18n/en.json b/apollo-portal/src/main/resources/static/i18n/en.json
index f1dfca0b78a..5dcbb3c5dc7 100644
--- a/apollo-portal/src/main/resources/static/i18n/en.json
+++ b/apollo-portal/src/main/resources/static/i18n/en.json
@@ -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",
diff --git a/apollo-portal/src/main/resources/static/i18n/zh-CN.json b/apollo-portal/src/main/resources/static/i18n/zh-CN.json
index d6fbd3ce87b..d183605711f 100644
--- a/apollo-portal/src/main/resources/static/i18n/zh-CN.json
+++ b/apollo-portal/src/main/resources/static/i18n/zh-CN.json
@@ -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": "点击创建",