Fix the i18n string scanner

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.
This commit is contained in:
Robin
2023-09-27 17:53:04 -04:00
parent 03caa22f0e
commit d0416e71cb

View File

@@ -18,5 +18,6 @@ export default {
output: "public/locales/$LOCALE/$NAMESPACE.json",
input: ["src/**/*.{ts,tsx}"],
sort: true,
useKeysAsDefaultValue: true,
// The key becomes the English version of the string
defaultValue: (_l, _ns, key) => key,
};