mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 01:41:24 -06:00
fe24404432
* I18n: Support for Enterprise translations * don't attempt to link to enterprise in tests * move extract script to makefile to optionally support enterprise * update references to old extract script * update docs * thank god for unit tests
19 lines
616 B
JavaScript
19 lines
616 B
JavaScript
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',
|
|
};
|