mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
6d8ca23625
refs https://github.com/TryGhost/Ghost/issues/15502 - this adds support for namespaces to the i18n package so we can separate translations for different packages
22 lines
422 B
JavaScript
22 lines
422 B
JavaScript
const {SUPPORTED_LOCALES} = require('./');
|
|
|
|
/**
|
|
* @type {import('i18next-parser').UserConfig}
|
|
*/
|
|
module.exports = {
|
|
locales: SUPPORTED_LOCALES,
|
|
|
|
keySeparator: false,
|
|
namespaceSeparator: false,
|
|
|
|
defaultNamespace: process.env.NAMESPACE || 'translation',
|
|
|
|
createOldCatalogs: false,
|
|
indentation: 4,
|
|
sort: true,
|
|
|
|
failOnUpdate: process.env.CI,
|
|
|
|
output: 'locales/$LOCALE/$NAMESPACE.json'
|
|
};
|