mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Add German Localization (#3328)
This commit is contained in:
@@ -163,6 +163,6 @@
|
||||
"LocalizationSettings": {
|
||||
"DefaultServerLocale": "en",
|
||||
"DefaultClientLocale": "en",
|
||||
"AvailableLocales": "en,es,fr,ja,pt-BR"
|
||||
"AvailableLocales": "de,en,es,fr,ja,pt-BR"
|
||||
}
|
||||
}
|
||||
4150
i18n/de.json
Normal file
4150
i18n/de.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -41,6 +41,7 @@ const (
|
||||
|
||||
// should match the values in webapp/i18n/i18n.jsx
|
||||
var LOCALES = []string{
|
||||
"de",
|
||||
"en",
|
||||
"es",
|
||||
"fr",
|
||||
|
||||
1456
webapp/i18n/de.json
Normal file
1456
webapp/i18n/de.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,14 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
const de = require('!!file?name=i18n/[name].[ext]!./de.json');
|
||||
const es = require('!!file?name=i18n/[name].[ext]!./es.json');
|
||||
const fr = require('!!file?name=i18n/[name].[ext]!./fr.json');
|
||||
const ja = require('!!file?name=i18n/[name].[ext]!./ja.json');
|
||||
const pt_BR = require('!!file?name=i18n/[name].[ext]!./pt-BR.json'); //eslint-disable-line camelcase
|
||||
|
||||
import {addLocaleData} from 'react-intl';
|
||||
import deLocaleData from 'react-intl/locale-data/de';
|
||||
import enLocaleData from 'react-intl/locale-data/en';
|
||||
import esLocaleData from 'react-intl/locale-data/es';
|
||||
import frLocaleData from 'react-intl/locale-data/fr';
|
||||
@@ -15,6 +17,11 @@ import ptLocaleData from 'react-intl/locale-data/pt';
|
||||
|
||||
// should match the values in model/config.go
|
||||
const languages = {
|
||||
de: {
|
||||
value: 'de',
|
||||
name: 'Deutsche (Beta)',
|
||||
url: de
|
||||
},
|
||||
en: {
|
||||
value: 'en',
|
||||
name: 'English',
|
||||
@@ -81,6 +88,7 @@ export function isLanguageAvailable(locale) {
|
||||
export function safariFix(callback) {
|
||||
require.ensure([
|
||||
'intl',
|
||||
'intl/locale-data/jsonp/de.js',
|
||||
'intl/locale-data/jsonp/en.js',
|
||||
'intl/locale-data/jsonp/es.js',
|
||||
'intl/locale-data/jsonp/fr.js',
|
||||
@@ -88,6 +96,7 @@ export function safariFix(callback) {
|
||||
'intl/locale-data/jsonp/pt.js'
|
||||
], (require) => {
|
||||
require('intl');
|
||||
require('intl/locale-data/jsonp/de.js');
|
||||
require('intl/locale-data/jsonp/en.js');
|
||||
require('intl/locale-data/jsonp/es.js');
|
||||
require('intl/locale-data/jsonp/fr.js');
|
||||
@@ -99,6 +108,7 @@ export function safariFix(callback) {
|
||||
|
||||
export function doAddLocaleData() {
|
||||
addLocaleData(enLocaleData);
|
||||
addLocaleData(deLocaleData);
|
||||
addLocaleData(esLocaleData);
|
||||
addLocaleData(frLocaleData);
|
||||
addLocaleData(jaLocaleData);
|
||||
|
||||
Reference in New Issue
Block a user