2022-10-10 21:19:10 +08:00
|
|
|
export default {
|
|
|
|
keySeparator: false,
|
|
|
|
namespaceSeparator: false,
|
|
|
|
contextSeparator: "|",
|
|
|
|
pluralSeparator: "|",
|
|
|
|
createOldCatalogs: false,
|
|
|
|
defaultNamespace: "app",
|
|
|
|
lexers: {
|
2022-12-10 03:34:25 +08:00
|
|
|
ts: [
|
|
|
|
{
|
|
|
|
lexer: "JavascriptLexer",
|
|
|
|
functions: ["t", "translatedError"],
|
|
|
|
functionsNamespace: ["useTranslation", "withTranslation"],
|
|
|
|
},
|
|
|
|
],
|
2022-10-10 21:19:10 +08:00
|
|
|
},
|
|
|
|
locales: ["en-GB"],
|
|
|
|
output: "public/locales/$LOCALE/$NAMESPACE.json",
|
|
|
|
input: ["src/**/*.{ts,tsx}"],
|
|
|
|
sort: true,
|
2023-09-28 05:53:04 +08:00
|
|
|
// The key becomes the English version of the string
|
|
|
|
defaultValue: (_l, _ns, key) => key,
|
2022-10-10 21:19:10 +08:00
|
|
|
};
|