I18n: Add German (#57397)

This commit is contained in:
Josh Hunt 2022-10-21 11:47:17 +01:00 committed by GitHub
parent fc75076b72
commit e417387bc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -3,6 +3,7 @@ import { ResourceKey } from 'i18next';
export const ENGLISH_US = 'en-US'; export const ENGLISH_US = 'en-US';
export const FRENCH_FRANCE = 'fr-FR'; export const FRENCH_FRANCE = 'fr-FR';
export const SPANISH_SPAIN = 'es-ES'; export const SPANISH_SPAIN = 'es-ES';
export const GERMAN_GERMANY = 'de-DE';
export const CHINESE_SIMPLIFIED = 'zh-Hans'; export const CHINESE_SIMPLIFIED = 'zh-Hans';
export const PSEUDO_LOCALE = 'pseudo-LOCALE'; export const PSEUDO_LOCALE = 'pseudo-LOCALE';
@ -38,6 +39,12 @@ export const LOCALES: LocaleDefinition[] = [
loader: () => import('../../../locales/es-ES/grafana.json'), loader: () => import('../../../locales/es-ES/grafana.json'),
}, },
{
code: GERMAN_GERMANY,
name: 'Deutsch',
loader: () => import('../../../locales/de-DE/grafana.json'),
},
{ {
code: CHINESE_SIMPLIFIED, code: CHINESE_SIMPLIFIED,
name: '中文(简体)', name: '中文(简体)',

View File

@ -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", "_comment": "Do not manually edit this file. Translations must be made in Crowdin which will sync them back into this file",
"common": { "common": {
"locale": { "locale": {
"default": "Standard", "default": "Standard"
"en-US": "Englisch",
"es-ES": "Spanisch",
"fr-FR": "Französisch",
"zh-Hans": "Chinesisch (vereinfacht)"
}, },
"save": "Speichern" "save": "Speichern"
}, },

View File

@ -2,7 +2,7 @@ module.exports = {
// Default namespace used in your i18next config // Default namespace used in your i18next config
defaultNamespace: 'grafana', 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', output: './public/locales/$LOCALE/$NAMESPACE.json',