feat(projects): import i18n [引入i18n]

This commit is contained in:
Soybean
2022-10-12 01:03:14 +08:00
parent 1b45b71f20
commit b632b7ffed
10 changed files with 164 additions and 4 deletions

11
src/locales/lang/index.ts Normal file
View File

@ -0,0 +1,11 @@
import zhCN from './zh-cn';
import en from './en';
const locales = {
'zh-CN': zhCN,
en
};
export type LocaleKey = keyof typeof locales;
export default locales;