i18next-parser.config.mjs 692 B

1234567891011121314
  1. // yarn global add i18next-parser
  2. // run i18next
  3. export default {
  4. defaultNamespace: 'common',
  5. locales: ['en', 'zh', 'de', 'ka'],
  6. output: 'src/i18n/locales/$LOCALE/$NAMESPACE.json',
  7. input: ["src/**/*.{ts,tsx}"],
  8. keepRemoved: true,
  9. // Key separator used in your translation keys
  10. // If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.
  11. keySeparator: false,
  12. namespaceSeparator: false,
  13. defaultValue: (locale, namespace, key, value) => value || key,
  14. }