2020-05-02 14:10:03 +00:00
|
|
|
// See also i18n.js
|
|
|
|
module.exports = {
|
|
|
|
input: ['src/**/*.{js,jsx}'],
|
|
|
|
output: './public',
|
|
|
|
|
|
|
|
options: {
|
|
|
|
// debug: true,
|
|
|
|
defaultLng: 'en',
|
|
|
|
func: {
|
|
|
|
list: ['i18next.t', 'i18n.t', 't'],
|
|
|
|
},
|
|
|
|
|
|
|
|
defaultValue: (lng, ns, key) => key,
|
|
|
|
resource: {
|
|
|
|
loadPath: 'locales/{{lng}}/{{ns}}.json',
|
|
|
|
savePath: 'locales/{{lng}}/{{ns}}.json',
|
2020-05-03 14:45:38 +00:00
|
|
|
jsonIndent: 4,
|
2020-05-02 14:10:03 +00:00
|
|
|
},
|
|
|
|
nsSeparator: false,
|
|
|
|
keySeparator: false,
|
|
|
|
pluralSeparator: false,
|
|
|
|
contextSeparator: false,
|
|
|
|
},
|
|
|
|
};
|