add persian and central kurdish

This commit is contained in:
Ben Wheeler 2019-02-06 17:09:23 -05:00
parent b51ede6cc4
commit 1a3e6245e0
2 changed files with 8 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import ar from 'react-intl/locale-data/ar';
import az from 'react-intl/locale-data/az'; // also parent for Abkahz import az from 'react-intl/locale-data/az'; // also parent for Abkahz
import bg from 'react-intl/locale-data/bg'; import bg from 'react-intl/locale-data/bg';
import ca from 'react-intl/locale-data/ca'; import ca from 'react-intl/locale-data/ca';
import ckb from 'react-intl/locale-data/ckb';
import cs from 'react-intl/locale-data/cs'; import cs from 'react-intl/locale-data/cs';
import cy from 'react-intl/locale-data/cy'; import cy from 'react-intl/locale-data/cy';
import da from 'react-intl/locale-data/da'; import da from 'react-intl/locale-data/da';
@ -15,6 +16,7 @@ import el from 'react-intl/locale-data/el';
import es from 'react-intl/locale-data/es'; import es from 'react-intl/locale-data/es';
import et from 'react-intl/locale-data/et'; import et from 'react-intl/locale-data/et';
import eu from 'react-intl/locale-data/eu'; import eu from 'react-intl/locale-data/eu';
import fa from 'react-intl/locale-data/fa';
import fi from 'react-intl/locale-data/fi'; import fi from 'react-intl/locale-data/fi';
import fr from 'react-intl/locale-data/fr'; import fr from 'react-intl/locale-data/fr';
import ga from 'react-intl/locale-data/ga'; import ga from 'react-intl/locale-data/ga';
@ -86,6 +88,7 @@ let localeData = [].concat(
az, // parent for Abkahz az, // parent for Abkahz
bg, bg,
ca, ca,
ckb,
cs, cs,
cy, cy,
da, da,
@ -94,6 +97,7 @@ let localeData = [].concat(
es, es,
et, et,
eu, eu,
fa,
fi, fi,
fr, fr,
ga, ga,

View file

@ -21,6 +21,7 @@ const locales = {
'es': {name: 'Español'}, 'es': {name: 'Español'},
'es-419': {name: 'Español Latinoamericano'}, 'es-419': {name: 'Español Latinoamericano'},
'eu': {name: 'Euskara'}, 'eu': {name: 'Euskara'},
'fa': {name: 'فارسی'},
'fr': {name: 'Français'}, 'fr': {name: 'Français'},
'ga': {name: 'Gaeilge'}, 'ga': {name: 'Gaeilge'},
'gd': {name: 'Gàidhlig'}, 'gd': {name: 'Gàidhlig'},
@ -31,6 +32,7 @@ const locales = {
'zu': {name: 'isiZulu'}, 'zu': {name: 'isiZulu'},
'is': {name: 'Íslenska'}, 'is': {name: 'Íslenska'},
'it': {name: 'Italiano'}, 'it': {name: 'Italiano'},
'ckb': {name: 'کوردیی ناوەندی'},
'lv': {name: 'Latviešu'}, 'lv': {name: 'Latviešu'},
'lt': {name: 'Lietuvių'}, 'lt': {name: 'Lietuvių'},
'hu': {name: 'Magyar'}, 'hu': {name: 'Magyar'},
@ -93,6 +95,8 @@ const localeMap = {
// list of RTL locales supported, and a function to check whether a locale is RTL // list of RTL locales supported, and a function to check whether a locale is RTL
const rtlLocales = [ const rtlLocales = [
'ar', 'ar',
'ckb',
'fa',
'he' 'he'
]; ];