diff --git a/public/app/core/internationalization/constants.ts b/public/app/core/internationalization/constants.ts index 71134bf1f70..6e6eec3ae4e 100644 --- a/public/app/core/internationalization/constants.ts +++ b/public/app/core/internationalization/constants.ts @@ -3,6 +3,7 @@ import { ResourceKey } from 'i18next'; export const ENGLISH_US = 'en-US'; export const FRENCH_FRANCE = 'fr-FR'; export const SPANISH_SPAIN = 'es-ES'; +export const GERMAN_GERMANY = 'de-DE'; export const CHINESE_SIMPLIFIED = 'zh-Hans'; export const PSEUDO_LOCALE = 'pseudo-LOCALE'; @@ -38,6 +39,12 @@ export const LOCALES: LocaleDefinition[] = [ loader: () => import('../../../locales/es-ES/grafana.json'), }, + { + code: GERMAN_GERMANY, + name: 'Deutsch', + loader: () => import('../../../locales/de-DE/grafana.json'), + }, + { code: CHINESE_SIMPLIFIED, name: '中文(简体)', diff --git a/public/locales/de-DE/grafana.json b/public/locales/de-DE/grafana.json index 4a4739ff190..b1db7230652 100644 --- a/public/locales/de-DE/grafana.json +++ b/public/locales/de-DE/grafana.json @@ -2,11 +2,7 @@ "_comment": "Do not manually edit this file. Translations must be made in Crowdin which will sync them back into this file", "common": { "locale": { - "default": "Standard", - "en-US": "Englisch", - "es-ES": "Spanisch", - "fr-FR": "Französisch", - "zh-Hans": "Chinesisch (vereinfacht)" + "default": "Standard" }, "save": "Speichern" }, diff --git a/public/locales/i18next-parser.config.js b/public/locales/i18next-parser.config.js index 1b0d66cb782..8c608d8b129 100644 --- a/public/locales/i18next-parser.config.js +++ b/public/locales/i18next-parser.config.js @@ -2,7 +2,7 @@ module.exports = { // Default namespace used in your i18next config defaultNamespace: 'grafana', - locales: ['en-US', 'fr-FR', 'es-ES', "zh-Hans", 'pseudo-LOCALE'], + locales: ['en-US', 'fr-FR', 'es-ES', "de-DE", "zh-Hans", 'pseudo-LOCALE'], output: './public/locales/$LOCALE/$NAMESPACE.json',