Set up translation with i18next
This commit is contained in:
parent
eca598e28f
commit
8524b9ecd6
55 changed files with 1470 additions and 326 deletions
20
i18next-parser.config.js
Normal file
20
i18next-parser.config.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
export default {
|
||||
keySeparator: false,
|
||||
namespaceSeparator: false,
|
||||
contextSeparator: "|",
|
||||
pluralSeparator: "|",
|
||||
createOldCatalogs: false,
|
||||
defaultNamespace: "app",
|
||||
lexers: {
|
||||
ts: [{
|
||||
lexer: "JavascriptLexer",
|
||||
functions: ["t", "translatedError"],
|
||||
functionsNamespace: ["useTranslation", "withTranslation"],
|
||||
}],
|
||||
},
|
||||
locales: ["en-GB"],
|
||||
output: "public/locales/$LOCALE/$NAMESPACE.json",
|
||||
input: ["src/**/*.{ts,tsx}"],
|
||||
sort: true,
|
||||
useKeysAsDefaultValue: true,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue