mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 13:42:30 -05:00
import māori locale-data
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.
This commit is contained in:
parent
fdc097667b
commit
ec799e327a
2 changed files with 3 additions and 8 deletions
|
@ -32,6 +32,7 @@ import ja from 'react-intl/locale-data/ja';
|
||||||
import ko from 'react-intl/locale-data/ko';
|
import ko from 'react-intl/locale-data/ko';
|
||||||
import lt from 'react-intl/locale-data/lt';
|
import lt from 'react-intl/locale-data/lt';
|
||||||
import lv from 'react-intl/locale-data/lv';
|
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 nl from 'react-intl/locale-data/nl';
|
||||||
import nb from 'react-intl/locale-data/nb';
|
import nb from 'react-intl/locale-data/nb';
|
||||||
import nn from 'react-intl/locale-data/nn';
|
import nn from 'react-intl/locale-data/nn';
|
||||||
|
@ -113,6 +114,7 @@ let localeData = [].concat(
|
||||||
ko,
|
ko,
|
||||||
lt,
|
lt,
|
||||||
lv,
|
lv,
|
||||||
|
mi,
|
||||||
nl,
|
nl,
|
||||||
nb,
|
nb,
|
||||||
nn,
|
nn,
|
||||||
|
|
|
@ -65,14 +65,7 @@ const customLocales = {
|
||||||
locale: 'ab',
|
locale: 'ab',
|
||||||
parentLocale: 'az'
|
parentLocale: 'az'
|
||||||
},
|
},
|
||||||
'es-419': {
|
// TODO: replace zh-cn, zh-tw with zh-Hans and zh-Hant
|
||||||
locale: 'es-419',
|
|
||||||
parentLocale: 'es'
|
|
||||||
},
|
|
||||||
'mi': {
|
|
||||||
locale: 'mi',
|
|
||||||
parentLocale: 'en'
|
|
||||||
},
|
|
||||||
'zh-cn': {
|
'zh-cn': {
|
||||||
locale: 'zh-cn',
|
locale: 'zh-cn',
|
||||||
parentLocale: 'zh'
|
parentLocale: 'zh'
|
||||||
|
|
Loading…
Reference in a new issue