From 2582e0e5a366d5bb305d88f7fb0be106b7f1e6fd Mon Sep 17 00:00:00 2001 From: Chris Garrity Date: Wed, 4 Aug 2021 10:55:34 -0400 Subject: [PATCH] Add Aragonese, Bengali, and Western Frysian languages Used `es` as the parent locale for Aragonese since it doesn't have locale data already defined. --- package.json | 2 +- src/locale-data.js | 4 ++++ src/supported-locales.js | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 871f32f5..ecf78742 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/locale-data.js b/src/locale-data.js index 8c20d571..8e82654e 100644 --- a/src/locale-data.js +++ b/src/locale-data.js @@ -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, diff --git a/src/supported-locales.js b/src/supported-locales.js index e5a1179a..b8a3efeb 100644 --- a/src/supported-locales.js +++ b/src/supported-locales.js @@ -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',