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", "name": "scratch-l10n",
"version": "3.2.0", "version": "3.3.0",
"description": "Localization for the Scratch 3.0 components", "description": "Localization for the Scratch 3.0 components",
"main": "./dist/l10n.js", "main": "./dist/l10n.js",
"browser": "./src/index.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 th from 'react-intl/locale-data/th';
import tr from 'react-intl/locale-data/tr'; import tr from 'react-intl/locale-data/tr';
import uk from 'react-intl/locale-data/uk'; 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 vi from 'react-intl/locale-data/vi';
import zh from 'react-intl/locale-data/zh'; import zh from 'react-intl/locale-data/zh';
import zu from 'react-intl/locale-data/zu'; import zu from 'react-intl/locale-data/zu';
@ -131,6 +132,7 @@ let localeData = [].concat(
th, th,
tr, tr,
uk, uk,
uz,
vi, vi,
zh, zh,
zu zu

View file

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