Skip to content

Commit

Permalink
fix:翻译文案也国际化
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 14117
  • Loading branch information
hyunfa committed Aug 5, 2024
1 parent 6fea4b3 commit a135f3a
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/common/navigation.vue
Original file line number Diff line number Diff line change
@@ -187,11 +187,11 @@ export default class NodemanNavigation extends Mixins(routerBackMixin) {
private langList = [
{
id: 'zh-cn', // zhCN
name: '中文',
name: this.$t('中文'),
},
{
id: 'en', // enUS
name: 'English',
name: this.$t('英文'),
},
];
private userList: IUserItem[] = [
2 changes: 2 additions & 0 deletions frontend/src/i18n/en.js
Original file line number Diff line number Diff line change
@@ -318,6 +318,8 @@ export default {
版本日志: 'Release note',
问题反馈: 'Feedback',
开源社区: 'Open source community',
中文: 'Chinese',
英文: 'English',
当前版本: 'Current',
安装到业务: 'Install to business',
接入点已在管控区域中设定: 'Access point has been set in the "BK-Net"',
2 changes: 2 additions & 0 deletions frontend/src/i18n/zh.js
Original file line number Diff line number Diff line change
@@ -318,6 +318,8 @@ export default {
版本日志: '版本日志',
问题反馈: '问题反馈',
开源社区: '开源社区',
中文: '中文',
英文: '英文',
当前版本: '当前版本',
安装到业务: '安装到业务',
接入点已在管控区域中设定: '接入点已在「管控区域」中设定',
2 changes: 1 addition & 1 deletion frontend/src/store/modules/platform-config.ts
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ export default class PlatformConfigStore extends VuexModule {
nameEn: 'NodeMan',
appLogo: logoSrc,
brandName: '腾讯蓝鲸智云',
brandNameEn: 'BlueKing',
brandNameEn: 'Tencent BlueKing',
favicon: faviconSrc,
helperLink: window.PROJECT_CONFIG.BKAPP_NAV_HELPER_URL,
helperText: window.i18n.t('联系BK助手'),

0 comments on commit a135f3a

Please sign in to comment.