From 551fc3dfafaa8d1f4ec1eec0fc740562b874b49f Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 1 Jun 2020 15:56:16 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20i18n=E6=B7=BB=E5=8A=A0profile/api=20?= =?UTF-8?q?key=20list=20en=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.json | 5 ++++- src/i18n/langs/en.json | 11 +++++++---- src/layout/components/NavHeader/ApiKey.vue | 3 ++- src/userviews/users/UserProfile/PasswordUpdate.vue | 6 +++--- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index 32a724529..b1851c6c7 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -634,6 +634,9 @@ "RenameNode": "" }, "users": { + "OldPassword": "原密码", + "NewPassword": "新密码", + "ConfirmPassword": "确认密码", "DateJoined": "创建日期", "MfaLevel": "多因子认证", "IsActive": "激活", @@ -802,4 +805,4 @@ "import": "" }, "": "" -} \ No newline at end of file +} diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 67da95aea..0226fd5dc 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -224,8 +224,8 @@ "updateErrorMsg": "Update failed", "updateSelected": "Update selected", "updateSuccessMsg": "Update success", - "Disable": "", - "Enable": "" + "Disable": "Disable", + "Enable": "Enable" }, "dashboard": { "ActiveAsset": "Asset active", @@ -539,7 +539,7 @@ "terminalSessionKeepDuration": "Units: days, Session, record, command will be delete if more than duration, only in database", "terminalTelnetRegex": "ex: Last\\\\s*login|success|\\u6210\\u529f", "userGuideUrl": "User first login update profile done redirect to it", - "ApiKeyList": "" + "ApiKeyList": "The API key is used to sign the request header. The header of each request is different. Please refer to the usage documentation" }, "helpTip": { "emailUserSSL": "If SMTP port is 465, may be select", @@ -599,7 +599,7 @@ "ImportLicense": "Import license", "AssetCount": "Asset count", "ImportLicenseTip": "Please Import License", - "ApiKeyList": "", + "ApiKeyList": "Api key list", "DateCreated": "", "Create": "" }, @@ -628,6 +628,9 @@ "RenameNode": "" }, "users": { + "OldPassword": "Old password", + "NewPassword": "New password", + "ConfirmPassword": "Confirm password", "Account": "Account", "Authentication": "Account", "Email": "Email", diff --git a/src/layout/components/NavHeader/ApiKey.vue b/src/layout/components/NavHeader/ApiKey.vue index 5592c01bd..fa611c270 100644 --- a/src/layout/components/NavHeader/ApiKey.vue +++ b/src/layout/components/NavHeader/ApiKey.vue @@ -46,7 +46,8 @@ export default { width: '80px' }, date_created: { - label: this.$t('setting.DateCreated'), + label: this.$t('common.dateCreated'), + showOverflowTooltip: true, formatter: DateFormatter }, actions: { diff --git a/src/userviews/users/UserProfile/PasswordUpdate.vue b/src/userviews/users/UserProfile/PasswordUpdate.vue index df412652f..14a4a3e73 100644 --- a/src/userviews/users/UserProfile/PasswordUpdate.vue +++ b/src/userviews/users/UserProfile/PasswordUpdate.vue @@ -32,19 +32,19 @@ export default { fields: ['old_password', 'new_password', 'new_password_again'], fieldsMeta: { old_password: { - label: '原密码', + label: this.$t('users.OldPassword'), el: { type: 'password' } }, new_password: { - label: '新密码', + label: this.$t('users.NewPassword'), el: { type: 'password' } }, new_password_again: { - label: '确认密码', + label: this.$t('users.ConfirmPassword'), el: { type: 'password' }