2017-09-21 11:54:41 -04:00
|
|
|
import en from 'react-intl/locale-data/en';
|
2018-07-19 09:31:11 -04:00
|
|
|
import az from 'react-intl/locale-data/az'; // also parent for Abkahz
|
2018-05-21 09:42:53 -04:00
|
|
|
import ca from 'react-intl/locale-data/ca';
|
|
|
|
import cs from 'react-intl/locale-data/cs';
|
|
|
|
import cy from 'react-intl/locale-data/cy';
|
2018-06-19 16:57:48 -04:00
|
|
|
import da from 'react-intl/locale-data/da';
|
2017-09-21 11:54:41 -04:00
|
|
|
import de from 'react-intl/locale-data/de';
|
2018-05-21 09:42:53 -04:00
|
|
|
import el from 'react-intl/locale-data/el';
|
2017-09-21 11:54:41 -04:00
|
|
|
import es from 'react-intl/locale-data/es';
|
2018-07-12 13:43:00 -04:00
|
|
|
import et from 'react-intl/locale-data/et';
|
2018-06-19 16:57:48 -04:00
|
|
|
import fi from 'react-intl/locale-data/fi';
|
2018-05-21 09:42:53 -04:00
|
|
|
import fr from 'react-intl/locale-data/fr';
|
|
|
|
import ga from 'react-intl/locale-data/ga';
|
|
|
|
import gd from 'react-intl/locale-data/gd';
|
2018-06-19 16:57:48 -04:00
|
|
|
import gl from 'react-intl/locale-data/gl';
|
2017-09-21 11:54:41 -04:00
|
|
|
import he from 'react-intl/locale-data/he';
|
2018-07-19 09:31:11 -04:00
|
|
|
import hu from 'react-intl/locale-data/hu';
|
2018-06-19 16:57:48 -04:00
|
|
|
import id from 'react-intl/locale-data/id';
|
2018-08-17 09:34:12 -04:00
|
|
|
import is from 'react-intl/locale-data/is';
|
2018-05-21 09:42:53 -04:00
|
|
|
import it from 'react-intl/locale-data/it';
|
|
|
|
import ja from 'react-intl/locale-data/ja';
|
2018-07-12 13:43:00 -04:00
|
|
|
import ko from 'react-intl/locale-data/ko';
|
2018-05-21 09:42:53 -04:00
|
|
|
import nl from 'react-intl/locale-data/nl';
|
|
|
|
import nb from 'react-intl/locale-data/nb';
|
2018-06-19 16:57:48 -04:00
|
|
|
import nn from 'react-intl/locale-data/nn';
|
2018-07-19 09:31:11 -04:00
|
|
|
import pl from 'react-intl/locale-data/pl';
|
2018-05-21 09:42:53 -04:00
|
|
|
import pt from 'react-intl/locale-data/pt';
|
2018-07-19 09:31:11 -04:00
|
|
|
import ru from 'react-intl/locale-data/ru';
|
2018-05-21 09:42:53 -04:00
|
|
|
import sl from 'react-intl/locale-data/sl';
|
2018-07-12 13:43:00 -04:00
|
|
|
import sk from 'react-intl/locale-data/sk';
|
2018-05-21 09:42:53 -04:00
|
|
|
import sr from 'react-intl/locale-data/sr';
|
2018-06-19 16:57:48 -04:00
|
|
|
import sv from 'react-intl/locale-data/sv';
|
|
|
|
import th from 'react-intl/locale-data/th';
|
2018-05-21 09:42:53 -04:00
|
|
|
import tr from 'react-intl/locale-data/tr';
|
|
|
|
import uk from 'react-intl/locale-data/uk';
|
2018-06-19 16:57:48 -04:00
|
|
|
import vi from 'react-intl/locale-data/vi';
|
2018-05-21 09:42:53 -04:00
|
|
|
import zh from 'react-intl/locale-data/zh';
|
2017-09-21 11:54:41 -04:00
|
|
|
|
2018-08-17 09:34:12 -04:00
|
|
|
import locales, {customLocales, isRtl} from './supported-locales.js';
|
2018-05-21 09:42:53 -04:00
|
|
|
/*
|
|
|
|
locales = {
|
|
|
|
'ab': {name: 'Аҧсшәа'},
|
|
|
|
'ca': {name: 'Català'},
|
|
|
|
'cs': {name: 'Česky'},
|
|
|
|
'cy': {name: 'Cymraeg'},
|
|
|
|
'de': {name: 'Deutsch'},
|
|
|
|
'el': {name: 'Ελληνικά'},
|
|
|
|
'en': {name: 'English'},
|
|
|
|
'es': {name: 'Español'},
|
|
|
|
'es-419': {name: 'Español Latinoamericano'},
|
|
|
|
'fr': {name: 'Français'},
|
|
|
|
'ga': {name: 'Gaeilge'},
|
|
|
|
'gd': {name: 'Gàidhlig'},
|
|
|
|
'he': {name: 'עִבְרִית'},
|
|
|
|
'it': {name: 'Italiano'},
|
|
|
|
'ja': {name: '日本語'},
|
|
|
|
'mi': {name: 'Maori'},
|
|
|
|
'nl': {name: 'Nederlands'},
|
|
|
|
'nb': {name: 'Norsk Bokmål'},
|
|
|
|
'pt': {name: 'Português'},
|
|
|
|
'pt-br': {name: 'Português Brasileiro'},
|
|
|
|
'sr': {name: 'Српски'},
|
|
|
|
'sl': {name: 'Slovenščina'},
|
|
|
|
'tr': {name: 'Türkçe'},
|
|
|
|
'uk': {name: 'Українська'},
|
|
|
|
'zh-cn': {name: '简体中文'},
|
|
|
|
'zh-tw': {name: '繁體中文'}
|
|
|
|
*/
|
|
|
|
|
|
|
|
let localeData = [].concat(
|
|
|
|
en,
|
|
|
|
az, // parent for Abkahz
|
|
|
|
ca,
|
|
|
|
cs,
|
|
|
|
cy,
|
2018-06-19 16:57:48 -04:00
|
|
|
da,
|
2018-05-21 09:42:53 -04:00
|
|
|
de,
|
|
|
|
el,
|
|
|
|
es,
|
2018-07-12 13:43:00 -04:00
|
|
|
et,
|
2018-06-19 16:57:48 -04:00
|
|
|
fi,
|
2018-05-21 09:42:53 -04:00
|
|
|
fr,
|
|
|
|
ga,
|
|
|
|
gd,
|
2018-06-19 16:57:48 -04:00
|
|
|
gl,
|
2018-05-21 09:42:53 -04:00
|
|
|
he,
|
2018-07-19 09:31:11 -04:00
|
|
|
hu,
|
2018-06-19 16:57:48 -04:00
|
|
|
id,
|
2018-08-17 09:34:12 -04:00
|
|
|
is,
|
2018-05-21 09:42:53 -04:00
|
|
|
it,
|
|
|
|
ja,
|
2018-07-12 13:43:00 -04:00
|
|
|
ko,
|
2018-05-21 09:42:53 -04:00
|
|
|
nl,
|
|
|
|
nb,
|
2018-06-19 16:57:48 -04:00
|
|
|
nn,
|
2018-07-19 09:31:11 -04:00
|
|
|
pl,
|
2018-05-21 09:42:53 -04:00
|
|
|
pt,
|
|
|
|
sl,
|
2018-07-12 13:43:00 -04:00
|
|
|
sk,
|
2018-05-21 09:42:53 -04:00
|
|
|
sr,
|
2018-06-19 16:57:48 -04:00
|
|
|
sv,
|
2018-07-19 09:31:11 -04:00
|
|
|
ru,
|
2018-06-19 16:57:48 -04:00
|
|
|
th,
|
2018-05-21 09:42:53 -04:00
|
|
|
tr,
|
|
|
|
uk,
|
2018-06-19 16:57:48 -04:00
|
|
|
vi,
|
2018-05-21 09:42:53 -04:00
|
|
|
zh
|
|
|
|
);
|
|
|
|
|
|
|
|
for (const lang in customLocales) {
|
|
|
|
localeData.push(customLocales[lang]);
|
|
|
|
}
|
2017-09-21 11:54:41 -04:00
|
|
|
|
|
|
|
export {
|
2018-05-21 09:42:53 -04:00
|
|
|
locales as default,
|
2018-08-17 09:34:12 -04:00
|
|
|
isRtl,
|
2018-05-21 09:42:53 -04:00
|
|
|
localeData // data expected for initializing ReactIntl.addLocaleData
|
2017-09-21 11:54:41 -04:00
|
|
|
};
|