grafana/public/locales/i18next-parser.config.js
Laura Benz 967a650d2d
I18n: Refactor crowdin workflow (#81571)
* refactor: crowdin config

* feat: add GH actions

* refactor: remove old GH action

* refactor: fix formatting issue

* refactor: adjust docs

* refactor: add changes after code review

* refactor: add changes after code review

* refactor: update CODEOWNERS file
2024-02-01 11:44:18 +00:00

20 lines
502 B
JavaScript

module.exports = {
// Default namespace used in your i18next config
defaultNamespace: 'grafana',
// Adds changes only to en-US when extracting keys, every other language is provided by Crowdin
locales: ['en-US'],
output: './public/locales/$LOCALE/$NAMESPACE.json',
sort: true,
createOldCatalogs: false,
failOnWarnings: true,
verbose: false,
// Don't include default values for English, they'll remain in the source code
skipDefaultValues: (locale) => locale !== 'en-US',
};