Add Aragonese, Bengali, and Western Frysian languages

Used `es` as the parent locale for Aragonese since it doesn't have locale data already defined.
This commit is contained in:
Chris Garrity 2021-08-04 10:55:34 -04:00
parent 3f5ef8a414
commit 2582e0e5a3
3 changed files with 13 additions and 1 deletions

View file

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

View file

@ -6,6 +6,7 @@ import am from './locale-data/am';
import ar from './locale-data/ar';
import az from './locale-data/az';
import be from './locale-data/be';
import bn from './locale-data/bn';
import bg from './locale-data/bg';
import ca from './locale-data/ca';
import ckb from './locale-data/ckb';
@ -20,6 +21,7 @@ import eu from './locale-data/eu';
import fa from './locale-data/fa';
import fi from './locale-data/fi';
import fr from './locale-data/fr';
import fy from './locale-data/fy';
import ga from './locale-data/ga';
import gd from './locale-data/gd';
import gl from './locale-data/gl';
@ -75,6 +77,7 @@ let localeData = [].concat(
az,
be,
bg,
bn,
ca,
ckb,
cs,
@ -88,6 +91,7 @@ let localeData = [].concat(
fa,
fi,
fr,
fy,
ga,
gd,
gl,

View file

@ -8,8 +8,10 @@ const locales = {
'af': {name: 'Afrikaans'},
'ar': {name: 'العربية'},
'am': {name: 'አማርኛ'},
'an': {name: 'Aragonés'},
'az': {name: 'Azeri'},
'id': {name: 'Bahasa Indonesia'},
'bn': {name: 'বাংলা'},
'be': {name: 'Беларуская'},
'bg': {name: 'Български'},
'ca': {name: 'Català'},
@ -25,6 +27,7 @@ const locales = {
'eu': {name: 'Euskara'},
'fa': {name: 'فارسی'},
'fr': {name: 'Français'},
'fy': {name: 'Frysk'},
'ga': {name: 'Gaeilge'},
'gd': {name: 'Gàidhlig'},
'gl': {name: 'Galego'},
@ -82,6 +85,11 @@ const customLocales = {
locale: 'ab',
parentLocale: 'ru'
},
// Aragonese is not in the locale data, using es for Spain
'an': {
locale: 'an',
parentLocale: 'es'
},
// haitian creole is not in locale-langData
'ht': {
locale: 'ht',