mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
d0416e71cb
Apparently the upgrade to i18next-parser v8 came with the deprecation of this 'useKeysAsDefaultValues' option, and this is the new way to configure that behavior.
24 lines
587 B
JavaScript
24 lines
587 B
JavaScript
export default {
|
|
keySeparator: false,
|
|
namespaceSeparator: false,
|
|
contextSeparator: "|",
|
|
pluralSeparator: "|",
|
|
createOldCatalogs: false,
|
|
defaultNamespace: "app",
|
|
lexers: {
|
|
ts: [
|
|
{
|
|
lexer: "JavascriptLexer",
|
|
functions: ["t", "translatedError"],
|
|
functionsNamespace: ["useTranslation", "withTranslation"],
|
|
},
|
|
],
|
|
},
|
|
locales: ["en-GB"],
|
|
output: "public/locales/$LOCALE/$NAMESPACE.json",
|
|
input: ["src/**/*.{ts,tsx}"],
|
|
sort: true,
|
|
// The key becomes the English version of the string
|
|
defaultValue: (_l, _ns, key) => key,
|
|
};
|