2017-09-21 11:54:41 -04:00
|
|
|
import en from 'react-intl/locale-data/en';
|
2018-05-21 09:42:53 -04:00
|
|
|
import az from 'react-intl/locale-data/az'; // 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';
|
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-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-06-19 16:57:48 -04:00
|
|
|
import id from 'react-intl/locale-data/id';
|
2018-05-21 09:42:53 -04:00
|
|
|
import it from 'react-intl/locale-data/it';
|
|
|
|
import ja from 'react-intl/locale-data/ja';
|
|
|
|
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-05-21 09:42:53 -04:00
|
|
|
import pt from 'react-intl/locale-data/pt';
|
|
|
|
import sl from 'react-intl/locale-data/sl';
|
|
|
|
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-05-21 09:42:53 -04:00
|
|
|
import locales, {customLocales} from './supported-locales.js';
|
|
|
|
/*
|
|
|
|
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-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-06-19 16:57:48 -04:00
|
|
|
id,
|
2018-05-21 09:42:53 -04:00
|
|
|
it,
|
|
|
|
ja,
|
|
|
|
nl,
|
|
|
|
nb,
|
2018-06-19 16:57:48 -04:00
|
|
|
nn,
|
2018-05-21 09:42:53 -04:00
|
|
|
pt,
|
|
|
|
sl,
|
|
|
|
sr,
|
2018-06-19 16:57:48 -04:00
|
|
|
sv,
|
|
|
|
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,
|
|
|
|
localeData // data expected for initializing ReactIntl.addLocaleData
|
2017-09-21 11:54:41 -04:00
|
|
|
};
|