This is an automated email from the ASF dual-hosted git repository.

min pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-admin.git


The following commit(s) were added to refs/heads/develop by this push:
     new 7ebfa3c  add i18n items
7ebfa3c is described below

commit 7ebfa3c602ccf28fd3b425e10c4d5a3d074263f0
Author: nzomkxia <[email protected]>
AuthorDate: Wed May 15 14:51:27 2019 +0800

    add i18n items
---
 dubbo-admin-ui/src/components/governance/AccessControl.vue | 2 +-
 dubbo-admin-ui/src/components/governance/Overrides.vue     | 2 +-
 dubbo-admin-ui/src/components/governance/RoutingRule.vue   | 2 +-
 dubbo-admin-ui/src/components/governance/TagRule.vue       | 2 +-
 dubbo-admin-ui/src/components/governance/WeightAdjust.vue  | 2 +-
 dubbo-admin-ui/src/lang/en.js                              | 6 ++++++
 dubbo-admin-ui/src/lang/zh.js                              | 6 ++++++
 7 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/dubbo-admin-ui/src/components/governance/AccessControl.vue 
b/dubbo-admin-ui/src/components/governance/AccessControl.vue
index 9b0b74c..2cd6a34 100644
--- a/dubbo-admin-ui/src/components/governance/AccessControl.vue
+++ b/dubbo-admin-ui/src/components/governance/AccessControl.vue
@@ -493,7 +493,7 @@ export default {
       }
       Object.assign(this.confirm, {
         enable: true,
-        title: 'Are you sure to Delete Access Control',
+        title: 'warnDeleteAccessControl',
         text: `Id: ${itemId}`,
         id: itemId
       })
diff --git a/dubbo-admin-ui/src/components/governance/Overrides.vue 
b/dubbo-admin-ui/src/components/governance/Overrides.vue
index fb0cd47..5ffedd4 100644
--- a/dubbo-admin-ui/src/components/governance/Overrides.vue
+++ b/dubbo-admin-ui/src/components/governance/Overrides.vue
@@ -410,7 +410,7 @@
             this.warnStatus.id = itemId
             break
           case 'delete':
-            this.openWarn(' Are you sure to Delete Dynamic Config', 'service: 
' + item.service)
+            this.openWarn('warnDeleteDynamicConfig', 'service: ' + 
item.service)
             this.warnStatus.operation = 'delete'
             this.warnStatus.id = itemId
         }
diff --git a/dubbo-admin-ui/src/components/governance/RoutingRule.vue 
b/dubbo-admin-ui/src/components/governance/RoutingRule.vue
index 27fca6e..7e86c30 100644
--- a/dubbo-admin-ui/src/components/governance/RoutingRule.vue
+++ b/dubbo-admin-ui/src/components/governance/RoutingRule.vue
@@ -429,7 +429,7 @@
             this.warnStatus.id = itemId
             break
           case 'delete':
-            this.openWarn(' Are you sure to Delete Routing Rule', 'service: ' 
+ oldItemId)
+            this.openWarn('warnDeleteRouteRule', 'service: ' + oldItemId)
             this.warnStatus.operation = 'delete'
             this.warnStatus.id = itemId
         }
diff --git a/dubbo-admin-ui/src/components/governance/TagRule.vue 
b/dubbo-admin-ui/src/components/governance/TagRule.vue
index a7d2417..e15b2c7 100644
--- a/dubbo-admin-ui/src/components/governance/TagRule.vue
+++ b/dubbo-admin-ui/src/components/governance/TagRule.vue
@@ -278,7 +278,7 @@
             this.warn.status.id = itemId
             break
           case 'delete':
-            this.openWarn(' Are you sure to Delete Tag Rule', 'application: ' 
+ item.application)
+            this.openWarn('warnDeleteTagRule', 'application: ' + 
item.application)
             this.warn.status.operation = 'delete'
             this.warn.status.id = itemId
         }
diff --git a/dubbo-admin-ui/src/components/governance/WeightAdjust.vue 
b/dubbo-admin-ui/src/components/governance/WeightAdjust.vue
index fd3a514..d530fbc 100644
--- a/dubbo-admin-ui/src/components/governance/WeightAdjust.vue
+++ b/dubbo-admin-ui/src/components/governance/WeightAdjust.vue
@@ -433,7 +433,7 @@
                 })
             break
           case 'delete':
-            this.openWarn(' Are you sure to Delete Routing Rule', 'service: ' 
+ itemId)
+            this.openWarn('warnDeleteWeightAdjust', 'service: ' + itemId)
             this.warnStatus.operation = 'delete'
             this.warnStatus.id = itemId
         }
diff --git a/dubbo-admin-ui/src/lang/en.js b/dubbo-admin-ui/src/lang/en.js
index 405fa04..adc826b 100644
--- a/dubbo-admin-ui/src/lang/en.js
+++ b/dubbo-admin-ui/src/lang/en.js
@@ -127,6 +127,12 @@ export default {
   scope: 'Scope',
   name: 'Name',
   warnDeleteConfig: ' Are you sure to Delete Dubbo Config: ',
+  warnDeleteRouteRule: 'Are you sure to Delete routing rule',
+  warnDeleteDynamicConfig: 'Are you sure to Delete dynamic config',
+  warnDeleteBalancing: 'Are you sure to Delete load balancing',
+  warnDeleteAccessControl: 'Are you sure to Delete access control',
+  warnDeleteTagRule: 'Are you sure to Delete tag rule',
+  warnDeleteWeightAdjust: 'Are you sure to Delete weight adjust',
   configNameHint: "Application name the config belongs to, use 
'global'(without quotes) for global config",
   configContent: 'Config Content',
   testMethod: 'Test Method',
diff --git a/dubbo-admin-ui/src/lang/zh.js b/dubbo-admin-ui/src/lang/zh.js
index 3f863a1..e1abcc5 100644
--- a/dubbo-admin-ui/src/lang/zh.js
+++ b/dubbo-admin-ui/src/lang/zh.js
@@ -127,6 +127,12 @@ export default {
   scope: '范围',
   name: '名称',
   warnDeleteConfig: ' 是否要删除Dubbo配置: ',
+  warnDeleteRouteRule: '是否要删除路由规则',
+  warnDeleteDynamicConfig: '是否要删除动态配置',
+  warnDeleteBalancing: '是否要删除负载均衡规则',
+  warnDeleteAccessControl: '是否要删除黑白名单',
+  warnDeleteTagRule: '是否要删除标签路由',
+  warnDeleteWeightAdjust: '是否要删除权重规则',
   configNameHint: '配置所属的应用名, global 表示全局配置',
   configContent: '配置内容',
   testMethod: '测试方法',

Reply via email to