Skip to content

Commit 3b6ca60

Browse files
committed
chore(i18n): add missing translation for "edition" in about dialog
1 parent 0e68f4a commit 3b6ca60

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

ui/src/layout/components/top-bar/avatar/AboutDialog.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
>
2424
</div>
2525
<div class="flex">
26-
<span class="label">{{ $t('layout.about.edition') }}</span><span>{{ user.showXpack() ? '专业版' : '社区版' }}</span>
26+
<span class="label">{{ $t('layout.about.edition.label') }}</span>
27+
<span>{{ user.showXpack() ? $t('layout.about.edition.professional') : $t('layout.about.edition.community') }}</span>
2728
</div>
2829
<div class="flex">
2930
<span class="label">{{ $t('layout.about.version') }}</span><span>{{ user.version }}</span>

ui/src/locales/lang/en-US/layout.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ export default {
1010
about: {
1111
title: 'About',
1212
expiredTime: 'Expiration Date',
13-
edition: 'Edition',
13+
edition: {
14+
label: 'Edition',
15+
community: 'Community Edition',
16+
professional: 'Professional Edition'
17+
},
1418
version: 'Version',
1519
serialNo: 'Serial No.',
1620
remark: 'Remarks',
1721
update: 'Update',
18-
authorize: 'Authorized'
22+
authorize: 'Authorized',
23+
1924
},
2025
time: {
2126
daysLater: 'days later',

ui/src/locales/lang/zh-CN/layout.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ export default {
1010
about: {
1111
title: '关于',
1212
expiredTime: '到期时间',
13-
edition: '版本',
13+
edition: {
14+
label: '版本',
15+
community: '社区版',
16+
professional: '专业版'
17+
},
1418
version: '版本号',
1519
serialNo: '序列号',
1620
remark: '备注',

ui/src/locales/lang/zh-Hant/layout.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ export default {
1111
about: {
1212
title: '關於',
1313
expiredTime: '到期時間',
14-
edition: '版本',
14+
edition: {
15+
label: '版本',
16+
community: '社群版',
17+
professional: '專業版'
18+
},
1519
version: '版本號',
1620
serialNo: '序列號',
1721
remark: '備註',

0 commit comments

Comments
 (0)