scratch-l10n/src/index.js

104 lines
2.7 KiB
JavaScript
Raw Normal View History

import en from 'react-intl/locale-data/en';
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';
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 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 id from 'react-intl/locale-data/id';
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';
import nn from 'react-intl/locale-data/nn';
import pt from 'react-intl/locale-data/pt';
import sl from 'react-intl/locale-data/sl';
import sr from 'react-intl/locale-data/sr';
import sv from 'react-intl/locale-data/sv';
import th from 'react-intl/locale-data/th';
import tr from 'react-intl/locale-data/tr';
import uk from 'react-intl/locale-data/uk';
import vi from 'react-intl/locale-data/vi';
import zh from 'react-intl/locale-data/zh';
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,
da,
de,
el,
es,
fi,
fr,
ga,
gd,
gl,
he,
id,
it,
ja,
nl,
nb,
nn,
pt,
sl,
sr,
sv,
th,
tr,
uk,
vi,
zh
);
for (const lang in customLocales) {
localeData.push(customLocales[lang]);
}
export {
locales as default,
localeData // data expected for initializing ReactIntl.addLocaleData
};