2022-10-10 21:19:10 +08:00
|
|
|
export default {
|
2023-11-20 21:22:54 +08:00
|
|
|
keySeparator: ".",
|
2022-10-10 21:19:10 +08:00
|
|
|
namespaceSeparator: false,
|
|
|
|
contextSeparator: "|",
|
2023-11-17 20:08:27 +08:00
|
|
|
pluralSeparator: "_",
|
2022-10-10 21:19:10 +08:00
|
|
|
createOldCatalogs: false,
|
|
|
|
defaultNamespace: "app",
|
|
|
|
lexers: {
|
2022-12-10 03:34:25 +08:00
|
|
|
ts: [
|
|
|
|
{
|
|
|
|
lexer: "JavascriptLexer",
|
|
|
|
functions: ["t", "translatedError"],
|
2023-11-17 20:34:12 +08:00
|
|
|
namespaceFunctions: ["useTranslation", "withTranslation"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
tsx: [
|
|
|
|
{
|
|
|
|
lexer: "JsxLexer",
|
|
|
|
functions: ["t", "translatedError"],
|
|
|
|
namespaceFunctions: ["useTranslation", "withTranslation"],
|
2022-12-10 03:34:25 +08:00
|
|
|
},
|
|
|
|
],
|
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,
|
|
|
|
};
|