grafana/public/locales/i18next-parser.config.cjs

19 lines
616 B
JavaScript
Raw Normal View History

module.exports = {
// Base config - same for both OSS and Enterprise
locales: ['en-US'], // Only en-US is updated - Crowdin will PR with other languages
sort: true,
createOldCatalogs: false,
failOnWarnings: true,
verbose: false,
resetDefaultValueLocale: 'en-US', // Updates extracted values when they change in code
// OSS-specific config
defaultNamespace: 'grafana',
input: [
'../../public/**/*.{tsx,ts}',
'!../../public/app/extensions/**/*', // Don't extract from Enterprise
'../../packages/grafana-ui/**/*.{tsx,ts}',
],
output: './public/locales/$LOCALE/$NAMESPACE.json',
};