Browse Source

zh-cn for OIDC config

Tao Chen 1 year ago
parent
commit
a8fae4ca50
2 changed files with 12 additions and 4 deletions
  1. 8 0
      src/utils/i18n/zh_CN.json
  2. 4 4
      src/views/oauth/index.vue

+ 8 - 0
src/utils/i18n/zh_CN.json

@@ -431,5 +431,13 @@
431
   "or login in with" :
431
   "or login in with" :
432
   {
432
   {
433
     "One": "或使用以下登陆"
433
     "One": "或使用以下登陆"
434
+  },
435
+  "Optional, default is" :
436
+  {
437
+    "One": "可选, 默认值是"
438
+  },
439
+  "Check your IdP docs, without":
440
+  {
441
+    "One": "检查IdP的文档, 不包含"
434
   }
442
   }
435
 }
443
 }

+ 4 - 4
src/views/oauth/index.vue

@@ -10,8 +10,8 @@
10
     </el-card>
10
     </el-card>
11
     <el-card class="list-body" shadow="hover">
11
     <el-card class="list-body" shadow="hover">
12
       <el-table :data="listRes.list" v-loading="listRes.loading" border>
12
       <el-table :data="listRes.list" v-loading="listRes.loading" border>
13
-        <el-table-column prop="id" label="id" align="center"/>
14
-        <el-table-column prop="op" :label="T('Type')" align="center"/>
13
+        <el-table-column prop="id" label="ID" align="center"/>
14
+        <el-table-column prop="op" :label="T('Platform')" align="center"/>
15
         <el-table-column prop="auto_register" :label="T('AutoRegister')" align="center"/>
15
         <el-table-column prop="auto_register" :label="T('AutoRegister')" align="center"/>
16
         <el-table-column prop="created_at" :label="T('CreatedAt')" align="center"/>
16
         <el-table-column prop="created_at" :label="T('CreatedAt')" align="center"/>
17
         <el-table-column prop="updated_at" :label="T('UpdatedAt')" align="center"/>
17
         <el-table-column prop="updated_at" :label="T('UpdatedAt')" align="center"/>
@@ -42,10 +42,10 @@
42
           </el-radio-group>
42
           </el-radio-group>
43
         </el-form-item>
43
         </el-form-item>
44
         <el-form-item v-if="formData.op === 'oidc'" label="Issuer" prop="issuer">
44
         <el-form-item v-if="formData.op === 'oidc'" label="Issuer" prop="issuer">
45
-          <el-input v-model="formData.issuer" placeholder="Check your IdP docs, without '/.well-known/openid-configuration'"></el-input>
45
+          <el-input v-model="formData.issuer" :placeholder="`${T('Check your IdP docs, without')} '/.well-known/openid-configuration'`"></el-input>
46
         </el-form-item>
46
         </el-form-item>
47
         <el-form-item v-show="formData.op === 'oidc'" label="Scopes" prop="scopes">
47
         <el-form-item v-show="formData.op === 'oidc'" label="Scopes" prop="scopes">
48
-          <el-input v-model="formData.scopes" placeholder= "Optional, default is 'openid,profile,email'"></el-input>
48
+          <el-input v-model="formData.scopes" :placeholder="`${T('Optional, default is')} 'openid,profile,email'`" ></el-input>
49
         </el-form-item>
49
         </el-form-item>
50
         <el-form-item label="ClientId" prop="client_id">
50
         <el-form-item label="ClientId" prop="client_id">
51
           <el-input v-model="formData.client_id"></el-input>
51
           <el-input v-model="formData.client_id"></el-input>