lossless-cut/i18next-parser.config.mjs

23 wiersze
467 B
JavaScript

2024-02-20 14:48:40 +00:00
// eslint-disable-line unicorn/filename-case
2023-02-19 06:37:03 +00:00
export default {
2024-03-21 15:28:25 +00:00
input: ['src/renderer/**/*.{js,jsx,ts,tsx}', 'src/main/*.{js,ts}'],
2023-02-19 06:37:03 +00:00
2024-05-14 10:18:11 +00:00
output: 'locales/$LOCALE/$NAMESPACE.json',
2023-02-19 06:37:03 +00:00
indentation: 4,
sort: true,
locales: ['en'],
lexers: {
js: ['JavascriptLexer'],
jsx: ['JsxLexer'],
},
defaultValue: (lng, ns, key) => key,
2024-03-21 15:28:25 +00:00
// Keep in sync between i18next-parser.config.js and i18nCommon.js:
2023-02-19 06:37:03 +00:00
keySeparator: false,
namespaceSeparator: false,
};