mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
I18n: Add German (#57397)
This commit is contained in:
parent
fc75076b72
commit
e417387bc7
@ -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: '中文(简体)',
|
||||||
|
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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',
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user