Squash merge feat/expo-app: app-expo, .cursor, workflows, package.json, .husky; remove app-android, app-ios, react-app
This commit is contained in:
21
app-expo/i18next.config.ts
Normal file
21
app-expo/i18next.config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { defineConfig } from 'i18next-cli';
|
||||
|
||||
export default defineConfig({
|
||||
locales: ['zh', 'en'],
|
||||
extract: {
|
||||
input: ['src/**/*.{ts,tsx}'],
|
||||
output: 'src/i18n/locales/{{language}}/{{namespace}}.json',
|
||||
defaultNS: 'common',
|
||||
functions: ['t', '*.t', 'i18n.t'],
|
||||
transComponents: ['Trans'],
|
||||
useTranslationNames: ['useTranslation'],
|
||||
sort: true,
|
||||
indentation: 2,
|
||||
removeUnusedKeys: true,
|
||||
},
|
||||
types: {
|
||||
input: ['src/i18n/locales/en/*.json'],
|
||||
output: 'src/i18n/generated/i18next.d.ts',
|
||||
resourcesFile: 'src/i18n/generated/resources.ts',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user