2025-08-04 18:50:57 +02:00
|
|
|
import type { UserConfig } from "i18next-parser";
|
|
|
|
|
|
|
|
|
|
const config: UserConfig = {
|
2023-11-20 13:22:54 +00:00
|
|
|
keySeparator: ".",
|
2022-10-10 09:19:10 -04:00
|
|
|
namespaceSeparator: false,
|
|
|
|
|
contextSeparator: "|",
|
2023-11-17 12:08:27 +00:00
|
|
|
pluralSeparator: "_",
|
2022-10-10 09:19:10 -04:00
|
|
|
createOldCatalogs: false,
|
|
|
|
|
defaultNamespace: "app",
|
|
|
|
|
lexers: {
|
2022-12-09 14:34:25 -05:00
|
|
|
ts: [
|
|
|
|
|
{
|
|
|
|
|
lexer: "JavascriptLexer",
|
|
|
|
|
functions: ["t", "translatedError"],
|
2023-11-17 12:34:12 +00:00
|
|
|
namespaceFunctions: ["useTranslation", "withTranslation"],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
tsx: [
|
|
|
|
|
{
|
|
|
|
|
lexer: "JsxLexer",
|
|
|
|
|
functions: ["t", "translatedError"],
|
|
|
|
|
namespaceFunctions: ["useTranslation", "withTranslation"],
|
2022-12-09 14:34:25 -05:00
|
|
|
},
|
|
|
|
|
],
|
2022-10-10 09:19:10 -04:00
|
|
|
},
|
2024-12-04 14:51:29 +00:00
|
|
|
locales: ["en"],
|
2024-11-14 11:53:43 +01:00
|
|
|
output: "locales/$LOCALE/$NAMESPACE.json",
|
2022-10-10 09:19:10 -04:00
|
|
|
input: ["src/**/*.{ts,tsx}"],
|
|
|
|
|
sort: true,
|
|
|
|
|
};
|
2025-08-04 18:50:57 +02:00
|
|
|
|
|
|
|
|
export default config;
|