2020-05-02 16:10:03 +02:00
|
|
|
// See also i18n.js
|
|
|
|
module.exports = {
|
2021-03-28 19:15:13 +02:00
|
|
|
input: ['src/**/*.{js,jsx}', 'public/*.js'],
|
2020-05-02 16:10:03 +02:00
|
|
|
output: './public',
|
|
|
|
|
|
|
|
options: {
|
2022-02-20 17:24:30 +01:00
|
|
|
sort: true,
|
|
|
|
|
2020-05-02 16:10:03 +02:00
|
|
|
// 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 16:45:38 +02:00
|
|
|
jsonIndent: 4,
|
2020-05-02 16:10:03 +02:00
|
|
|
},
|
|
|
|
nsSeparator: false,
|
|
|
|
keySeparator: false,
|
|
|
|
pluralSeparator: false,
|
|
|
|
contextSeparator: false,
|
2020-11-25 22:26:11 +01:00
|
|
|
|
|
|
|
trans: {
|
|
|
|
fallbackKey: (ns, value) => value,
|
|
|
|
},
|
2020-05-02 16:10:03 +02:00
|
|
|
},
|
|
|
|
};
|