From fbb486634f2d32be94d6bdb3737a6707597d1734 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 19 Feb 2023 14:37:03 +0800 Subject: [PATCH] add forgotten file --- i18next-parser.config.mjs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 i18next-parser.config.mjs diff --git a/i18next-parser.config.mjs b/i18next-parser.config.mjs new file mode 100644 index 00000000..304d4c7c --- /dev/null +++ b/i18next-parser.config.mjs @@ -0,0 +1,21 @@ +export default { + input: ['src/**/*.{js,jsx}', 'public/*.js'], + + output: 'public/locales/$LOCALE/$NAMESPACE.json', + indentation: 4, + + sort: true, + + locales: ['en'], + + lexers: { + js: ['JavascriptLexer'], + jsx: ['JsxLexer'], + }, + + defaultValue: (lng, ns, key) => key, + + // Keep in sync between i18next-parser.config.js and i18n-common.js: + keySeparator: false, + namespaceSeparator: false, +};