From ec799e327a72ce6d139b7d46581127862cf24dfc Mon Sep 17 00:00:00 2001 From: chrisgarrity Date: Wed, 17 Apr 2019 12:11:43 -0400 Subject: [PATCH] =?UTF-8?q?import=20m=C4=81ori=20locale-data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as of react-intl 2.8.0 māori (mi) locale data is included in `react-intl/locale-data`. Use that instead of a custom locale. Also remove unnecessary `es-419` custom locale, `es-419` is already included in the default `es.js` locale-data. --- src/index.js | 2 ++ src/supported-locales.js | 9 +-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/index.js b/src/index.js index b8cc4f82..ef6c3af4 100644 --- a/src/index.js +++ b/src/index.js @@ -32,6 +32,7 @@ import ja from 'react-intl/locale-data/ja'; import ko from 'react-intl/locale-data/ko'; 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'; @@ -113,6 +114,7 @@ let localeData = [].concat( ko, lt, lv, + mi, nl, nb, nn, diff --git a/src/supported-locales.js b/src/supported-locales.js index 6ef762fb..c16b1732 100644 --- a/src/supported-locales.js +++ b/src/supported-locales.js @@ -65,14 +65,7 @@ const customLocales = { locale: 'ab', parentLocale: 'az' }, - 'es-419': { - locale: 'es-419', - parentLocale: 'es' - }, - 'mi': { - locale: 'mi', - parentLocale: 'en' - }, + // TODO: replace zh-cn, zh-tw with zh-Hans and zh-Hant 'zh-cn': { locale: 'zh-cn', parentLocale: 'zh'