Skip to content

Commit fa7e544

Browse files
feat: user manual and help doc support i18n (#2199)
Co-authored-by: wangdan-fit2cloud <dan.wang@fit2cloud.com>
1 parent d6d8a9f commit fa7e544

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ export default {
2323
expired: 'expired',
2424
expiringSoon: 'expiring soon'
2525
},
26-
copyright: 'Copyright © 2014-2025 FIT2CLOUD, All rights reserved.'
26+
copyright: 'Copyright © 2014-2025 FIT2CLOUD, All rights reserved.',
27+
userManualUrl: 'http://docs.maxkb.hk/',
28+
forumUrl: 'https://github.com/1Panel-dev/MaxKB/discussions'
2729
}

ui/src/locales/lang/en-US/views/application-overview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
},
2222
APIKeyDialog: {
2323
saveSettings: 'Save Settings',
24-
msgConfirm1: 'Are you sure you want to delete the API Key?',
24+
msgConfirm1: 'Are you sure you want to delete the API Key',
2525
msgConfirm2:
2626
'This action is irreversible. Once deleted, the API Key cannot be recovered. Do you still want to proceed?',
2727
enabledSuccess: 'Enabled',

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ export default {
2323
expired: '已过期',
2424
expiringSoon: '即将到期'
2525
},
26-
copyright: '版权所有 © 2014-2025 杭州飞致云信息科技有限公司'
26+
copyright: '版权所有 © 2014-2025 杭州飞致云信息科技有限公司',
27+
userManualUrl: 'https://maxkb.cn/docs/',
28+
forumUrl: 'https://bbs.fit2cloud.com/c/mk/11'
2729
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ export default {
2424
expired: '已過期',
2525
expiringSoon: '即將到期'
2626
},
27-
copyright: '版權所有 © 2014-2025 杭州飛致雲信息科技有限公司'
27+
copyright: '版權所有 © 2014-2025 杭州飛致雲信息科技有限公司',
28+
userManualUrl:'https://maxkb.cn/docs/',
29+
forumUrl: 'https://github.com/1Panel-dev/MaxKB/discussions'
2830
}

ui/src/utils/theme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ export const defaultSetting = {
4242

4343
export const defaultPlatformSetting = {
4444
showUserManual: true,
45-
userManualUrl: 'https://maxkb.cn/docs/',
45+
userManualUrl: t('layout.userManualUrl'),
4646
showForum: true,
47-
forumUrl: 'https://bbs.fit2cloud.com/c/mk/11',
47+
forumUrl: t('layout.forumUrl'),
4848
showProject: true,
4949
projectUrl: 'https://github.com/1Panel-dev/MaxKB'
5050
}

ui/src/views/application-overview/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ const dayOptions = [
239239
{
240240
value: 7,
241241
// @ts-ignore
242-
label: t('views.applicationOverview.monitor.pastDayOptions.past7Days') // 使用 t 方法来国际化显示文本
242+
label: t('views.applicationOverview.monitor.pastDayOptions.past7Days')
243243
},
244244
{
245245
value: 30,

0 commit comments

Comments
 (0)