element-call-Github/i18next-parser.config.ts

29 lines
658 B
TypeScript
Raw Normal View History

2022-10-10 21:19:10 +08:00
export default {
keySeparator: ".",
2022-10-10 21:19:10 +08:00
namespaceSeparator: false,
contextSeparator: "|",
pluralSeparator: "_",
2022-10-10 21:19:10 +08:00
createOldCatalogs: false,
defaultNamespace: "app",
lexers: {
ts: [
{
lexer: "JavascriptLexer",
functions: ["t", "translatedError"],
namespaceFunctions: ["useTranslation", "withTranslation"],
},
],
tsx: [
{
lexer: "JsxLexer",
functions: ["t", "translatedError"],
namespaceFunctions: ["useTranslation", "withTranslation"],
},
],
2022-10-10 21:19:10 +08:00
},
locales: ["en-GB"],
2024-11-14 18:53:43 +08:00
output: "locales/$LOCALE/$NAMESPACE.json",
2022-10-10 21:19:10 +08:00
input: ["src/**/*.{ts,tsx}"],
sort: true,
};