mirror of
https://github.com/vector-im/element-call.git
synced 2026-01-18 02:32:27 +00:00
33 lines
742 B
TypeScript
33 lines
742 B
TypeScript
import type { UserConfig } from "i18next-parser";
|
|
|
|
const config: UserConfig = {
|
|
keySeparator: ".",
|
|
namespaceSeparator: false,
|
|
contextSeparator: "|",
|
|
pluralSeparator: "_",
|
|
createOldCatalogs: false,
|
|
defaultNamespace: "app",
|
|
lexers: {
|
|
ts: [
|
|
{
|
|
lexer: "JavascriptLexer",
|
|
functions: ["t", "translatedError"],
|
|
namespaceFunctions: ["useTranslation", "withTranslation"],
|
|
},
|
|
],
|
|
tsx: [
|
|
{
|
|
lexer: "JsxLexer",
|
|
functions: ["t", "translatedError"],
|
|
namespaceFunctions: ["useTranslation", "withTranslation"],
|
|
},
|
|
],
|
|
},
|
|
locales: ["en"],
|
|
output: "locales/$LOCALE/$NAMESPACE.json",
|
|
input: ["src/**/*.{ts,tsx}"],
|
|
sort: true,
|
|
};
|
|
|
|
export default config;
|