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