perf(projects): complete dynamic route translate [补充动态路由的翻译]

This commit is contained in:
Soybean
2023-05-24 23:16:37 +08:00
parent b7fea53107
commit 7b746fa053
9 changed files with 154 additions and 18 deletions

View File

@ -26,7 +26,7 @@ const options = [
{
label: 'ភាសាខ្មែរ',
key: 'km-KH'
}
}
];
const handleSelect = (key: string) => {
language.value = key as I18nType.langType;

View File

@ -7,7 +7,7 @@ const locale: LocaleMessages<I18nType.Schema> = {
},
routes: {
dashboard: {
dashboard: 'Dashboard',
_value: 'Dashboard',
analysis: 'Analysis',
workbench: 'Workbench'
},

View File

@ -5,7 +5,7 @@ import kmKH from './km-KH';
const locales = {
'zh-CN': zhCN,
en,
'km-KH': kmKH,
'km-KH': kmKH
};
export type LocaleKey = keyof typeof locales;

View File

@ -7,7 +7,7 @@ const locale: LocaleMessages<I18nType.Schema> = {
},
routes: {
dashboard: {
dashboard: 'ផ្ទាំងទិន្នន័យ',
_value: 'ផ្ទាំងទិន្នន័យ',
analysis: 'ផ្ទាំងវិភាគ',
workbench: 'ផ្ទាំងការងារ'
},

View File

@ -7,7 +7,7 @@ const locale: LocaleMessages<I18nType.Schema> = {
},
routes: {
dashboard: {
dashboard: '仪表盘',
_value: '仪表盘',
analysis: '分析页',
workbench: '工作台'
},

View File

@ -30,7 +30,7 @@ const dashboard: AuthRoute.Route = {
title: '仪表盘',
icon: 'mdi:monitor-dashboard',
order: 1,
i18nTitle: 'message.routes.dashboard.dashboard'
i18nTitle: 'message.routes.dashboard._value'
}
};

View File

@ -310,7 +310,7 @@ declare namespace I18nType {
};
routes: {
dashboard: {
dashboard: string;
_value: string;
analysis: string;
workbench: string;
};