1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-19 00:11:49 +03:00
Ghost/ghost/i18n/i18next-parser.config.js
Daniel Lockyer 6d8ca23625
Added support for namespaces to i18n package
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
2023-03-01 10:24:08 +01:00

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'
};