chore: abstract resources configure
This commit is contained in:
17
ui/src/i18n/locales/index.ts
Normal file
17
ui/src/i18n/locales/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Resource } from 'i18next'
|
||||
|
||||
import zh from './zh.json'
|
||||
import en from './en.json'
|
||||
|
||||
const resources: Resource = {
|
||||
zh: {
|
||||
name: '简体中文',
|
||||
translation: zh
|
||||
},
|
||||
en: {
|
||||
name: 'English',
|
||||
translation: en
|
||||
}
|
||||
}
|
||||
|
||||
export default resources;
|
||||
Reference in New Issue
Block a user