-
Notifications
You must be signed in to change notification settings - Fork 12
/
i18next-parser.config.js
28 lines (22 loc) · 1.4 KB
/
i18next-parser.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
createOldCatalogs: false,
// Save the \_old files
defaultNamespace: 'plugin__activemq-artemis-self-provisioning-plugin',
// Default namespace used in your i18next config
keySeparator: false,
// Key separator used in your translation keys
// 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.
locales: ['en'],
// An array of the locales in your applications
namespaceSeparator: '~',
// Namespace separator used in your translation keys
// 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.
reactNamespace: false,
// For react file, extract the defaultNamespace - https://react.i18next.com/components/translate-hoc.html
// Ignored when parsing a `.jsx` file and namespace is extracted from that file.
defaultValue: function (_, __, key, ___) {
// The `useKeysAsDefaultValues` option is deprecated in favor of `defaultValue` option function arguments.
// The `key` is used to set default value.
return key;
},
};