scratch-l10n/src/index.js

132 lines
3.3 KiB
JavaScript
Raw Normal View History

// to find locale data in react-intl, go to:
// https://unpkg.com/react-intl/locale-data/
import en from 'react-intl/locale-data/en';
import am from 'react-intl/locale-data/am';
2018-10-10 17:47:46 -04:00
import ar from 'react-intl/locale-data/ar';
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';
import bg from 'react-intl/locale-data/bg';
import ca from 'react-intl/locale-data/ca';
2019-02-06 17:09:23 -05:00
import ckb from 'react-intl/locale-data/ckb';
import cs from 'react-intl/locale-data/cs';
import cy from 'react-intl/locale-data/cy';
import da from 'react-intl/locale-data/da';
import de from 'react-intl/locale-data/de';
import el from 'react-intl/locale-data/el';
import es from 'react-intl/locale-data/es';
import et from 'react-intl/locale-data/et';
import eu from 'react-intl/locale-data/eu';
2019-02-06 17:09:23 -05:00
import fa from 'react-intl/locale-data/fa';
import fi from 'react-intl/locale-data/fi';
import fr from 'react-intl/locale-data/fr';
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';
2018-11-15 08:36:52 -05:00
import hr from 'react-intl/locale-data/hr';
2020-05-11 14:23:22 -04:00
import hy from 'react-intl/locale-data/hy';
import id from 'react-intl/locale-data/id';
import is from 'react-intl/locale-data/is';
import it from 'react-intl/locale-data/it';
import ja from 'react-intl/locale-data/ja';
import ka from 'react-intl/locale-data/ka';
import ko from 'react-intl/locale-data/ko';
import km from 'react-intl/locale-data/km';
2020-03-24 15:24:44 -04:00
import ku from 'react-intl/locale-data/ku';
2018-10-10 17:47:46 -04:00
import lt from 'react-intl/locale-data/lt';
import lv from 'react-intl/locale-data/lv';
import mi from 'react-intl/locale-data/mi';
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';
2018-10-10 17:47:46 -04:00
import ro from 'react-intl/locale-data/ro';
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';
import sv from 'react-intl/locale-data/sv';
2019-10-07 17:46:00 -04:00
import sw from 'react-intl/locale-data/sw';
import th from 'react-intl/locale-data/th';
import tr from 'react-intl/locale-data/tr';
import uk from 'react-intl/locale-data/uk';
2019-05-08 16:01:46 -04:00
import uz from 'react-intl/locale-data/uz';
import vi from 'react-intl/locale-data/vi';
import zh from 'react-intl/locale-data/zh';
import zu from 'react-intl/locale-data/zu';
import locales, {customLocales, localeMap, isRtl} from './supported-locales.js';
let localeData = [].concat(
en,
am,
2018-10-10 17:47:46 -04:00
ar,
az, // parent for Abkahz
2019-04-17 13:51:08 -04:00
be,
bg,
ca,
2019-02-06 17:09:23 -05:00
ckb,
cs,
cy,
da,
de,
el,
es,
et,
eu,
2019-02-06 17:09:23 -05:00
fa,
fi,
fr,
ga,
gd,
gl,
he,
hu,
2018-11-15 08:36:52 -05:00
hr,
2020-05-11 14:23:22 -04:00
hy,
id,
is,
it,
ja,
ka,
ko,
km,
2020-03-24 15:24:44 -04:00
ku,
2018-10-10 17:47:46 -04:00
lt,
lv,
mi,
nl,
nb,
nn,
pl,
pt,
sl,
sk,
sr,
sv,
2019-10-07 17:46:00 -04:00
sw,
2018-10-10 17:47:46 -04:00
ro,
ru,
th,
tr,
uk,
2019-05-08 16:01:46 -04:00
uz,
vi,
zh,
zu
);
for (const lang in customLocales) {
localeData.push(customLocales[lang]);
}
export {
locales as default,
localeMap,
isRtl,
localeData // data expected for initializing ReactIntl.addLocaleData
};