2019-01-18 12:33:24 -05:00
|
|
|
// to find locale data in react-intl, go to:
|
|
|
|
// https://unpkg.com/react-intl/locale-data/
|
|
|
|
|
2017-09-21 11:54:41 -04:00
|
|
|
import en from 'react-intl/locale-data/en';
|
2018-09-18 16:58:25 -04:00
|
|
|
import am from 'react-intl/locale-data/am';
|
2018-10-10 17:47:46 -04:00
|
|
|
import ar from 'react-intl/locale-data/ar';
|
2018-07-19 09:31:11 -04:00
|
|
|
import az from 'react-intl/locale-data/az'; // also parent for Abkahz
|
2019-04-17 13:51:08 -04:00
|
|
|
import be from 'react-intl/locale-data/be';
|
2019-01-17 13:58:03 -05:00
|
|
|
import bg from 'react-intl/locale-data/bg';
|
2018-05-21 09:42:53 -04:00
|
|
|
import ca from 'react-intl/locale-data/ca';
|
2019-02-06 17:09:23 -05:00
|
|
|
import ckb from 'react-intl/locale-data/ckb';
|
2018-05-21 09:42:53 -04:00
|
|
|
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-09-18 16:58:25 -04:00
|
|
|
import eu from 'react-intl/locale-data/eu';
|
2019-02-06 17:09:23 -05:00
|
|
|
import fa from 'react-intl/locale-data/fa';
|
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-11-15 08:36:52 -05:00
|
|
|
import hr from 'react-intl/locale-data/hr';
|
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-10-10 17:47:46 -04:00
|
|
|
import lt from 'react-intl/locale-data/lt';
|
2019-01-17 13:58:03 -05:00
|
|
|
import lv from 'react-intl/locale-data/lv';
|
2019-04-17 12:11:43 -04:00
|
|
|
import mi from 'react-intl/locale-data/mi';
|
2018-05-21 09:42:53 -04:00
|
|
|
import nl from 'react-intl/locale-data/nl';
|
|
|
|
import nb from 'react-intl/locale-data/nb';
|
2019-01-17 13:58:03 -05: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-10-10 17:47:46 -04:00
|
|
|
import ro from 'react-intl/locale-data/ro';
|
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';
|
2019-01-17 13:58:03 -05: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';
|
2018-12-13 09:07:56 -05:00
|
|
|
import zu from 'react-intl/locale-data/zu';
|
2017-09-21 11:54:41 -04:00
|
|
|
|
2018-11-25 18:05:44 -05:00
|
|
|
import locales, {customLocales, localeMap, 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,
|
2018-09-18 16:58:25 -04:00
|
|
|
am,
|
2018-10-10 17:47:46 -04:00
|
|
|
ar,
|
2018-05-21 09:42:53 -04:00
|
|
|
az, // parent for Abkahz
|
2019-04-17 13:51:08 -04:00
|
|
|
be,
|
2019-01-17 13:58:03 -05:00
|
|
|
bg,
|
2018-05-21 09:42:53 -04:00
|
|
|
ca,
|
2019-02-06 17:09:23 -05:00
|
|
|
ckb,
|
2018-05-21 09:42:53 -04:00
|
|
|
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-09-18 16:58:25 -04:00
|
|
|
eu,
|
2019-02-06 17:09:23 -05:00
|
|
|
fa,
|
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-11-15 08:36:52 -05:00
|
|
|
hr,
|
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-10-10 17:47:46 -04:00
|
|
|
lt,
|
2019-01-17 13:58:03 -05:00
|
|
|
lv,
|
2019-04-17 12:11:43 -04:00
|
|
|
mi,
|
2018-05-21 09:42:53 -04:00
|
|
|
nl,
|
|
|
|
nb,
|
2019-01-17 13:58:03 -05:00
|
|
|
nn,
|
2018-07-19 09:31:11 -04:00
|
|
|
pl,
|
2018-05-21 09:42:53 -04:00
|
|
|
pt,
|
|
|
|
sl,
|
2019-01-17 13:58:03 -05:00
|
|
|
sk,
|
2018-05-21 09:42:53 -04:00
|
|
|
sr,
|
2018-06-19 16:57:48 -04:00
|
|
|
sv,
|
2018-10-10 17:47:46 -04:00
|
|
|
ro,
|
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-12-13 09:07:56 -05:00
|
|
|
zh,
|
|
|
|
zu
|
2018-05-21 09:42:53 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
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-11-25 18:05:44 -05:00
|
|
|
localeMap,
|
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
|
|
|
};
|