perf: 修改i18n

pref: 修改翻译
This commit is contained in:
ibuler
2021-11-10 18:12:30 +08:00
committed by 怀磊
parent a7ba36b734
commit e0b98ba758
4 changed files with 21 additions and 27 deletions

View File

@@ -858,7 +858,7 @@
"AppAuth": "App认证",
"OtherAuth": "其它认证",
"Ops": "任务",
"OTP": "OTP(虚拟MFA)",
"OTP": "MFA (OTP)",
"JMSSSO": "SSO Token 登录",
"MessageSub": "消息订阅",
"Cleaning": "定期清理",
@@ -1216,10 +1216,10 @@
"SMS": "短信"
},
"xpack": {
"NavHelp": "导航栏 (帮助)",
"helpDocument": "帮助 (文档)",
"helpSupport": "帮助 (支持)",
"officialWebsite": "帮助 (官网)",
"NavHelp": "导航栏链接",
"helpDocument": "文档链接",
"helpSupport": "支持链接",
"officialWebsite": "官网链接",
"helpDocumentTip": "可以更改网站导航栏 帮助 -> 文档 的网址",
"helpSupportTip": "可以更改网站导航栏 帮助 -> 支持 的网址",
"officialWebsiteTip": "可以更改网站导航栏 帮助 -> 官网 的网址",

View File

@@ -825,7 +825,7 @@
"setting": {
"Feature": "Feature",
"SMSProvider": "SMS provider",
"SMS": "SMS setting",
"SMS": "SMS",
"AlibabaCloud": "Alibaba cloud",
"TencentCloud": "Tencent cloud",
"VerifySignTmpl": "Verification code template",
@@ -838,9 +838,9 @@
"AuthLimit": "Auth limit",
"Ops": "Task",
"OTP": "OTP(MFA)",
"MessageSub": "Message subscription",
"MessageSub": "Message",
"Cleaning": "Period clean",
"Perms": "授权",
"Perms": "Perms",
"CASSetting": "CAS setting",
"Other": "More...",
"Auth": "Auth",
@@ -849,26 +849,26 @@
"InsecureCommandNotifyToSubscription": "Insecure command notification setting, change to system message subscription, support more notify method",
"ApiKeyList": "Api key list",
"AssetCount": "Asset count",
"Basic": "Basic setting",
"Basic": "Basic",
"Corporation": "Corporation",
"Create": "Create",
"Edition": "Edition",
"Email": "Email setting",
"Email": "Email",
"EmailContent": "Email content setting",
"Expired": "Expired",
"Hostname": "Hostname",
"ImportLicense": "Import license",
"ImportLicenseTip": "Please Import License",
"Ldap": "LDAP setting",
"Ldap": "LDAP",
"License": "License",
"LicenseFile": "License file",
"PasswordCheckRule": "Password check rule",
"Security": "Security setting",
"SecuritySetting": "Security setting",
"Security": "Security",
"SecuritySetting": "Security",
"SubscriptionID": "Subscription ID",
"SystemMessageSubscription": "System messages",
"insecureCommandEmailUpdate": "Setting",
"Terminal": "Terminal setting",
"Terminal": "Terminal",
"all": "All",
"authLdap": "Enable LDAP auth",
"authLdapBindDn": "Bind DN",
@@ -1005,7 +1005,7 @@
"Comment": "Comment",
"MyTickets": "My tickets",
"action": "Action",
"IPGroup": "IP ",
"IPGroup": "IP group",
"Reject": "Reject",
"date": "Date",
"reply": "Reply",
@@ -1177,10 +1177,9 @@
"SMS": "SMS"
},
"xpack": {
"NavHelp": "Navigation (Help)",
"helpDocument": "Help (Docs)",
"helpSupport": "Help (Support)",
"officialWebsite": "Help (Website)",
"NavHelp": "Navigation Link",
"helpDocument": "Docs link",
"helpSupport": "Support link",
"helpDocumentTip": "You can change the URL of the site navigation bar help -> Docs",
"helpSupportTip": "You can change the URL of the site navigation bar help -> Support",
"officialWebsiteTip": "You can change the URL of the site navigation bar help -> Website",

View File

@@ -6,7 +6,7 @@
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="docs">{{ $t('common.nav.Docs') }}</el-dropdown-item>
<el-dropdown-item command="support">{{ $t('common.nav.Support') }}</el-dropdown-item>
<el-dropdown-item v-if="!hasLicence" command="EnterpriseEdition">{{ $t('common.nav.EnterpriseEdition') }}</el-dropdown-item>
<el-dropdown-item v-if="!hasLicence" command="enterprise">{{ $t('common.nav.EnterpriseEdition') }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
@@ -43,7 +43,7 @@ export default {
case 'support':
window.open(this.URLSite.HELP_SUPPORT_URL, '_blank')
break
case 'EnterpriseEdition':
case 'enterprise':
window.open('https://jumpserver.org/enterprise.html', '_blank')
break
default:

View File

@@ -62,11 +62,6 @@ export default {
label: this.$t('xpack.helpSupport'),
helpText: this.$t('xpack.helpSupportTip'),
hidden: () => !this.hasValidLicense()
},
OFFICIAL_WEBSITE_URL: {
label: this.$t('xpack.officialWebsite'),
helpText: this.$t('xpack.officialWebsiteTip'),
hidden: () => !this.hasValidLicense()
}
},
submitMethod() {
@@ -78,7 +73,7 @@ export default {
if (this.hasValidLicense()) {
this.fields.push([
this.$t('xpack.NavHelp'), [
'HELP_DOCUMENT_URL', 'HELP_SUPPORT_URL', 'OFFICIAL_WEBSITE_URL'
'HELP_DOCUMENT_URL', 'HELP_SUPPORT_URL'
]
])
}