From d31fed92d7126f341f8b4dc8c533139efb34ca4c Mon Sep 17 00:00:00 2001
From: guqing <38999863+guqing@users.noreply.github.com>
Date: Mon, 10 Feb 2025 19:04:04 +0800
Subject: [PATCH] chore(i18n): add missing translation for "edition" in about
dialog (#2222)
---
ui/src/layout/components/top-bar/avatar/AboutDialog.vue | 3 ++-
ui/src/locales/lang/en-US/layout.ts | 9 +++++++--
ui/src/locales/lang/zh-CN/layout.ts | 6 +++++-
ui/src/locales/lang/zh-Hant/layout.ts | 6 +++++-
4 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/ui/src/layout/components/top-bar/avatar/AboutDialog.vue b/ui/src/layout/components/top-bar/avatar/AboutDialog.vue
index 3f337b5a70c..59ecfc07607 100644
--- a/ui/src/layout/components/top-bar/avatar/AboutDialog.vue
+++ b/ui/src/layout/components/top-bar/avatar/AboutDialog.vue
@@ -23,7 +23,8 @@
>
- {{ $t('layout.about.edition') }}{{ user.showXpack() ? '专业版' : '社区版' }}
+ {{ $t('layout.about.edition.label') }}
+ {{ user.showXpack() ? $t('layout.about.edition.professional') : $t('layout.about.edition.community') }}
{{ $t('layout.about.version') }}{{ user.version }}
diff --git a/ui/src/locales/lang/en-US/layout.ts b/ui/src/locales/lang/en-US/layout.ts
index d3d2247c1ff..8ceecd75327 100644
--- a/ui/src/locales/lang/en-US/layout.ts
+++ b/ui/src/locales/lang/en-US/layout.ts
@@ -10,12 +10,17 @@ export default {
about: {
title: 'About',
expiredTime: 'Expiration Date',
- edition: 'Edition',
+ edition: {
+ label: 'Edition',
+ community: 'Community Edition',
+ professional: 'Professional Edition'
+ },
version: 'Version',
serialNo: 'Serial No.',
remark: 'Remarks',
update: 'Update',
- authorize: 'Authorized'
+ authorize: 'Authorized',
+
},
time: {
daysLater: 'days later',
diff --git a/ui/src/locales/lang/zh-CN/layout.ts b/ui/src/locales/lang/zh-CN/layout.ts
index 3a066f8e3a1..fbf8e7e934e 100644
--- a/ui/src/locales/lang/zh-CN/layout.ts
+++ b/ui/src/locales/lang/zh-CN/layout.ts
@@ -10,7 +10,11 @@ export default {
about: {
title: '关于',
expiredTime: '到期时间',
- edition: '版本',
+ edition: {
+ label: '版本',
+ community: '社区版',
+ professional: '专业版'
+ },
version: '版本号',
serialNo: '序列号',
remark: '备注',
diff --git a/ui/src/locales/lang/zh-Hant/layout.ts b/ui/src/locales/lang/zh-Hant/layout.ts
index 4117faf6a5a..2f8662f84a1 100644
--- a/ui/src/locales/lang/zh-Hant/layout.ts
+++ b/ui/src/locales/lang/zh-Hant/layout.ts
@@ -11,7 +11,11 @@ export default {
about: {
title: '關於',
expiredTime: '到期時間',
- edition: '版本',
+ edition: {
+ label: '版本',
+ community: '社群版',
+ professional: '專業版'
+ },
version: '版本號',
serialNo: '序列號',
remark: '備註',