Skip to content

Commit

Permalink
feat: user manual and help doc support i18n (#2199)
Browse files Browse the repository at this point in the history
Co-authored-by: wangdan-fit2cloud <dan.wang@fit2cloud.com>
  • Loading branch information
shaohuzhang1 and wangdan-fit2cloud authored Feb 10, 2025
1 parent d6d8a9f commit fa7e544
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
4 changes: 3 additions & 1 deletion ui/src/locales/lang/en-US/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ export default {
expired: 'expired',
expiringSoon: 'expiring soon'
},
copyright: 'Copyright © 2014-2025 FIT2CLOUD, All rights reserved.'
copyright: 'Copyright © 2014-2025 FIT2CLOUD, All rights reserved.',
userManualUrl: 'http://docs.maxkb.hk/',
forumUrl: 'https://github.com/1Panel-dev/MaxKB/discussions'
}
2 changes: 1 addition & 1 deletion ui/src/locales/lang/en-US/views/application-overview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
},
APIKeyDialog: {
saveSettings: 'Save Settings',
msgConfirm1: 'Are you sure you want to delete the API Key?',
msgConfirm1: 'Are you sure you want to delete the API Key',
msgConfirm2:
'This action is irreversible. Once deleted, the API Key cannot be recovered. Do you still want to proceed?',
enabledSuccess: 'Enabled',
Expand Down
4 changes: 3 additions & 1 deletion ui/src/locales/lang/zh-CN/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ export default {
expired: '已过期',
expiringSoon: '即将到期'
},
copyright: '版权所有 © 2014-2025 杭州飞致云信息科技有限公司'
copyright: '版权所有 © 2014-2025 杭州飞致云信息科技有限公司',
userManualUrl: 'https://maxkb.cn/docs/',
forumUrl: 'https://bbs.fit2cloud.com/c/mk/11'
}
4 changes: 3 additions & 1 deletion ui/src/locales/lang/zh-Hant/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ export default {
expired: '已過期',
expiringSoon: '即將到期'
},
copyright: '版權所有 © 2014-2025 杭州飛致雲信息科技有限公司'
copyright: '版權所有 © 2014-2025 杭州飛致雲信息科技有限公司',
userManualUrl:'https://maxkb.cn/docs/',
forumUrl: 'https://github.com/1Panel-dev/MaxKB/discussions'
}
4 changes: 2 additions & 2 deletions ui/src/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export const defaultSetting = {

export const defaultPlatformSetting = {
showUserManual: true,
userManualUrl: 'https://maxkb.cn/docs/',
userManualUrl: t('layout.userManualUrl'),
showForum: true,
forumUrl: 'https://bbs.fit2cloud.com/c/mk/11',
forumUrl: t('layout.forumUrl'),
showProject: true,
projectUrl: 'https://github.com/1Panel-dev/MaxKB'
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/application-overview/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const dayOptions = [
{
value: 7,
// @ts-ignore
label: t('views.applicationOverview.monitor.pastDayOptions.past7Days') // 使用 t 方法来国际化显示文本
label: t('views.applicationOverview.monitor.pastDayOptions.past7Days')
},
{
value: 30,
Expand Down

0 comments on commit fa7e544

Please sign in to comment.