Merge pull request #1640 from robintown/fix-i18n-parser

Fix the i18n string scanner
This commit is contained in:
Robin
2023-09-28 09:39:10 -04:00
committed by GitHub

View File

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