Merge "Add support for Indonesian language"

This commit is contained in:
Jenkins 2017-04-20 09:34:36 +00:00 committed by Gerrit Code Review
commit fc3983baf7
3 changed files with 8 additions and 1 deletions

View File

@ -22,6 +22,7 @@ window.tripleOUiConfig = {
// 'de': 'German',
// 'en': 'English',
// 'es': 'Spanish',
// 'id': 'Indonesian',
// 'ja': 'Japanese',
// 'ko-KR': 'Korean',
// 'zh-CN': 'Simplified Chinese'

View File

@ -0,0 +1,3 @@
---
other:
- Indonesian added to the languages list.

View File

@ -3,6 +3,7 @@ import { connect } from 'react-redux';
import React from 'react';
import de from 'react-intl/locale-data/de';
import es from 'react-intl/locale-data/es';
import id from 'react-intl/locale-data/id';
import ja from 'react-intl/locale-data/ja';
import ko from 'react-intl/locale-data/ko';
import zh from 'react-intl/locale-data/zh';
@ -10,6 +11,7 @@ import zh from 'react-intl/locale-data/zh';
import I18nActions from '../../actions/I18nActions';
import deMessages from '../../../../i18n/locales/de.json';
import esMessages from '../../../../i18n/locales/es.json';
import idMessages from '../../../../i18n/locales/id.json';
import jaMessages from '../../../../i18n/locales/ja.json';
import kokrMessages from '../../../../i18n/locales/ko-KR.json';
import zhcnMessages from '../../../../i18n/locales/zh-CN.json';
@ -19,6 +21,7 @@ import { getLanguage, getMessages } from '../../selectors/i18n';
export const MESSAGES = {
'de': deMessages['de'],
'es': esMessages['es'],
'id': idMessages['id'],
'ja': jaMessages['ja'],
'ko-KR': kokrMessages['ko-KR'],
'zh-CN': zhcnMessages['zh-CN']
@ -27,7 +30,7 @@ export const MESSAGES = {
class I18nProvider extends React.Component {
constructor() {
super();
addLocaleData([...de, ...es, ...ja, ...ko, ...zh]);
addLocaleData([...de, ...es, ...id, ...ja, ...ko, ...zh]);
}
componentDidMount() {