module.exports = { debug: true, removeUnusedKeys: true, func: { list: ['t', 'props.t', 'this.props.t'], extensions: ['.js', '.jsx'] }, lngs: ['en', 'fr'], defaultLng: 'en', keySeparator: false, // false means "keyBasedFallback" nsSeparator: false, // false means "keyBasedFallback" fallbackLng: false, ns: ['translation'], // namespace defaultNS: 'translation', // @param {string} lng The language currently used. // @param {string} ns The namespace currently used. // @param {string} key The translation key. // @return {string} Returns a default value for the translation key. // Return key as the default value for English language. Otherwise, returns '__NOT_TRANSLATED__' defaultValue: (lng, ns, key) => lng === 'en' ? key : '__NOT_TRANSLATED__', react: {wait: true}, resource: { // The path where resources get loaded from. // /!\ /!\ /!\ Relative to CURRENT working directory. /!\ loadPath: 'i18next.scanner/{{lng}}/{{ns}}.json', // The path to store resources. // /!\ /!\ /!\ Relative to the path specified by `vfs.dest('./i18next.scanner')`. /!\ savePath: '{{lng}}/{{ns}}.json', jsonIndent: 2, lineEnding: '\n' }, // interpolation: { // escapeValue: false, // not needed for react!! // }, trans: false, }