Add Rapa Nui and Uzbek

This commit is contained in:
Chris Garrity 2019-05-08 16:01:46 -04:00
parent de8cb2ff72
commit 2949bb326b
3 changed files with 9 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "scratch-l10n",
"version": "3.2.0",
"version": "3.3.0",
"description": "Localization for the Scratch 3.0 components",
"main": "./dist/l10n.js",
"browser": "./src/index.js",

View file

@ -48,6 +48,7 @@ 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 uz from 'react-intl/locale-data/uz';
import vi from 'react-intl/locale-data/vi';
import zh from 'react-intl/locale-data/zh';
import zu from 'react-intl/locale-data/zu';
@ -131,6 +132,7 @@ let localeData = [].concat(
th,
tr,
uk,
uz,
vi,
zh,
zu

View file

@ -43,10 +43,12 @@ const locales = {
'ja-Hira': {name: 'にほんご'},
'nb': {name: 'Norsk Bokmål'},
'nn': {name: 'Norsk Nynorsk'},
'uz': {name: 'Oʻzbekcha'},
'th': {name: 'ไทย'},
'pl': {name: 'Polski'},
'pt': {name: 'Português'},
'pt-br': {name: 'Português Brasileiro'},
'rap': {name: 'Rapa Nui'},
'ro': {name: 'Română'},
'ru': {name: 'Русский'},
'sr': {name: 'Српски'},
@ -66,6 +68,10 @@ const customLocales = {
locale: 'ab',
parentLocale: 'az'
},
'rap': {
locale: 'rap',
parentLocale: 'es'
},
// TODO: replace zh-cn, zh-tw with zh-Hans and zh-Hant
'zh-cn': {
locale: 'zh-cn',