feat: Add base project structure with API and web components
This commit is contained in:
1230
web/src/i18n/en.ts
Normal file
1230
web/src/i18n/en.ts
Normal file
File diff suppressed because it is too large
Load Diff
20
web/src/i18n/index.ts
Normal file
20
web/src/i18n/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import i18n from 'i18next'
|
||||
import { initReactI18next } from 'react-i18next'
|
||||
import { en } from './en'
|
||||
import { zh } from './zh'
|
||||
|
||||
i18n
|
||||
.use(initReactI18next)
|
||||
.init({
|
||||
resources: {
|
||||
en,
|
||||
zh,
|
||||
},
|
||||
lng: 'en',
|
||||
fallbackLng: 'en',
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
})
|
||||
|
||||
export default i18n
|
||||
1337
web/src/i18n/zh.ts
Normal file
1337
web/src/i18n/zh.ts
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user