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", "name": "scratch-l10n",
"version": "3.13.0", "version": "3.14.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

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

View file

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