From a9813026e4b9d0dc245f7a1377612f3443562ed4 Mon Sep 17 00:00:00 2001 From: chrisgarrity Date: Thu, 19 Jul 2018 09:31:11 -0400 Subject: [PATCH] Update supported languages Add newly completely languages to the menu: * Azerbaijani - was already importing locale as parent of Abkhaz, changed comment * Hungarian, Pollish, Russian, --- src/index.js | 8 +++++++- src/supported-locales.js | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a882ab70..26b5898a 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import en from 'react-intl/locale-data/en'; -import az from 'react-intl/locale-data/az'; // parent for Abkahz +import az from 'react-intl/locale-data/az'; // also parent for Abkahz import ca from 'react-intl/locale-data/ca'; import cs from 'react-intl/locale-data/cs'; import cy from 'react-intl/locale-data/cy'; @@ -14,6 +14,7 @@ import ga from 'react-intl/locale-data/ga'; import gd from 'react-intl/locale-data/gd'; import gl from 'react-intl/locale-data/gl'; import he from 'react-intl/locale-data/he'; +import hu from 'react-intl/locale-data/hu'; import id from 'react-intl/locale-data/id'; import it from 'react-intl/locale-data/it'; import ja from 'react-intl/locale-data/ja'; @@ -21,7 +22,9 @@ import ko from 'react-intl/locale-data/ko'; import nl from 'react-intl/locale-data/nl'; import nb from 'react-intl/locale-data/nb'; import nn from 'react-intl/locale-data/nn'; +import pl from 'react-intl/locale-data/pl'; import pt from 'react-intl/locale-data/pt'; +import ru from 'react-intl/locale-data/ru'; import sl from 'react-intl/locale-data/sl'; import sk from 'react-intl/locale-data/sk'; import sr from 'react-intl/locale-data/sr'; @@ -80,6 +83,7 @@ let localeData = [].concat( gd, gl, he, + hu, id, it, ja, @@ -87,11 +91,13 @@ let localeData = [].concat( nl, nb, nn, + pl, pt, sl, sk, sr, sv, + ru, th, tr, uk, diff --git a/src/supported-locales.js b/src/supported-locales.js index d4cd964d..6f8bdc79 100644 --- a/src/supported-locales.js +++ b/src/supported-locales.js @@ -5,6 +5,7 @@ const locales = { 'ab': {name: 'Аҧсшәа'}, + 'az': {name: 'Azeri'}, 'id': {name: 'Bahasa Indonesia'}, 'ca': {name: 'Català'}, 'cs': {name: 'Česky'}, @@ -27,11 +28,14 @@ const locales = { 'nl': {name: 'Nederlands'}, 'ja': {name: '日本語'}, 'ja-Hira': {name: 'にほんご'}, + 'hu': {name: 'Magyar'}, 'nb': {name: 'Norsk Bokmål'}, 'nn': {name: 'Norsk Nynorsk'}, 'th': {name: 'ไทย'}, + 'pl': {name: 'Polski'}, 'pt': {name: 'Português'}, 'pt-br': {name: 'Português Brasileiro'}, + 'ru': {name: 'Русский'}, 'sr': {name: 'Српски'}, 'sk': {name: 'Slovenčina'}, 'sl': {name: 'Slovenščina'},