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

View file

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