Skip to content

Commit

Permalink
chore(i18n): add missing translation for "edition" in about dialog (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
guqing authored Feb 10, 2025
1 parent 415748a commit d31fed9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ui/src/layout/components/top-bar/avatar/AboutDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
>
</div>
<div class="flex">
<span class="label">{{ $t('layout.about.edition') }}</span><span>{{ user.showXpack() ? '专业版' : '社区版' }}</span>
<span class="label">{{ $t('layout.about.edition.label') }}</span>
<span>{{ user.showXpack() ? $t('layout.about.edition.professional') : $t('layout.about.edition.community') }}</span>
</div>
<div class="flex">
<span class="label">{{ $t('layout.about.version') }}</span><span>{{ user.version }}</span>
Expand Down
9 changes: 7 additions & 2 deletions ui/src/locales/lang/en-US/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 5 additions & 1 deletion ui/src/locales/lang/zh-CN/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export default {
about: {
title: '关于',
expiredTime: '到期时间',
edition: '版本',
edition: {
label: '版本',
community: '社区版',
professional: '专业版'
},
version: '版本号',
serialNo: '序列号',
remark: '备注',
Expand Down
6 changes: 5 additions & 1 deletion ui/src/locales/lang/zh-Hant/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ export default {
about: {
title: '關於',
expiredTime: '到期時間',
edition: '版本',
edition: {
label: '版本',
community: '社群版',
professional: '專業版'
},
version: '版本號',
serialNo: '序列號',
remark: '備註',
Expand Down

0 comments on commit d31fed9

Please sign in to comment.