Merge pull request #641 from esteemapp/language/pt-ko-lt

added porteguese lithuanian and korean
This commit is contained in:
uğur erdal 2019-02-27 22:54:11 +03:00 committed by GitHub
commit a5a20b079d
3 changed files with 34 additions and 4 deletions

View File

@ -6,6 +6,9 @@ export default {
'it-IT': require('./it-IT.json'),
'ru-RU': require('./ru-RU.json'),
'tr-TR': require('./tr-TR.json'),
'ko-KR': require('./ko-KR.json'),
'lt-LT': require('./lt-LT.json'),
'pt-PT': require('./pt-PT.json'),
};
export const locales = [
@ -16,4 +19,7 @@ export const locales = [
{ id: 'iT-IT', name: 'Italian' },
{ id: 'ru-RU', name: 'Русский' },
{ id: 'tr-TR', name: 'Türkçe' },
{ id: 'ko-KR', name: 'Korean' },
{ id: 'lt-LT', name: 'Lithuanian' },
{ id: 'pt-PT', name: 'Porteguese' },
];

View File

@ -1,3 +1,23 @@
export default ['Deutsche', 'English', 'Hungarian', 'Indonesian', 'Russian', 'Turkish'];
export default [
'Deutsche',
'English',
'Hungarian',
'Indonesian',
'Korean',
'Lithuanian',
'Porteguese',
'Russian',
'Turkish',
];
export const VALUE = ['de-DE', 'en-US', 'hu-HU', 'id-ID', 'ru-RU', 'tr-TR'];
export const VALUE = [
'de-DE',
'en-US',
'hu-HU',
'id-ID',
'ko-KR',
'lt-LT',
'pt-PT',
'ru-RU',
'tr-TR',
];

View File

@ -10,7 +10,7 @@ import { NavigationActions } from 'react-navigation';
import { bindActionCreators } from 'redux';
import Push from 'appcenter-push';
// Constants
// Languages
import en from 'react-intl/locale-data/en';
import id from 'react-intl/locale-data/id';
import ru from 'react-intl/locale-data/ru';
@ -18,7 +18,11 @@ import de from 'react-intl/locale-data/de';
import it from 'react-intl/locale-data/it';
import hu from 'react-intl/locale-data/hu';
import tr from 'react-intl/locale-data/tr';
import ko from 'react-intl/locale-data/ko';
import lt from 'react-intl/locale-data/lt';
import pt from 'react-intl/locale-data/pt';
// Constants
import AUTH_TYPE from '../../../constants/authType';
// Services
@ -67,7 +71,7 @@ import {
import ApplicationScreen from '../screen/applicationScreen';
import { Launch } from '../..';
addLocaleData([...en, ...ru, ...de, ...id, ...it, ...hu, ...tr]);
addLocaleData([...en, ...ru, ...de, ...id, ...it, ...hu, ...tr, ...ko, ...pt, ...lt]);
class ApplicationContainer extends Component {
constructor() {