2023-01-18 20:21:36 +03:00
|
|
|
const {SUPPORTED_LOCALES} = require('./');
|
|
|
|
|
2023-02-27 13:29:56 +03:00
|
|
|
/**
|
|
|
|
* @type {import('i18next-parser').UserConfig}
|
|
|
|
*/
|
2023-01-18 20:21:36 +03:00
|
|
|
module.exports = {
|
|
|
|
locales: SUPPORTED_LOCALES,
|
|
|
|
|
|
|
|
keySeparator: false,
|
|
|
|
namespaceSeparator: false,
|
|
|
|
|
2023-03-01 11:10:11 +03:00
|
|
|
defaultNamespace: process.env.NAMESPACE || 'translation',
|
|
|
|
|
2023-01-18 20:29:54 +03:00
|
|
|
createOldCatalogs: false,
|
|
|
|
indentation: 4,
|
2023-01-18 20:21:36 +03:00
|
|
|
sort: true,
|
|
|
|
|
2023-01-19 18:20:55 +03:00
|
|
|
failOnUpdate: process.env.CI,
|
|
|
|
|
2023-03-01 11:10:11 +03:00
|
|
|
output: 'locales/$LOCALE/$NAMESPACE.json'
|
2023-01-18 20:21:36 +03:00
|
|
|
};
|