commit: 8e8707bcebc5d6f0f1bdd809782725dc7526533c
parent 176dacb6ba6de9bf47798ff1ed56f0fd84f2ff68
Author: Henry Jameson <me@hjkos.com>
Date: Wed, 11 Sep 2024 21:17:35 +0300
add Pennsylvania Dutch to languages
Diffstat:
3 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/i18n/languages.js b/src/i18n/languages.js
@@ -22,6 +22,7 @@ const languages = [
'nl',
'oc',
'pl',
+ 'pdc',
'pt',
'ro',
'ru',
diff --git a/src/i18n/service_worker_messages.js b/src/i18n/service_worker_messages.js
@@ -25,6 +25,7 @@ const messages = {
oc: require('../lib/notification-i18n-loader.js!./oc.json'),
pl: require('../lib/notification-i18n-loader.js!./pl.json'),
pt: require('../lib/notification-i18n-loader.js!./pt.json'),
+ pdc: require('../lib/notification-i18n-loader.js!./pdc.json'),
ro: require('../lib/notification-i18n-loader.js!./ro.json'),
ru: require('../lib/notification-i18n-loader.js!./ru.json'),
sk: require('../lib/notification-i18n-loader.js!./sk.json'),
diff --git a/src/services/locale/locale.service.js b/src/services/locale/locale.service.js
@@ -3,6 +3,7 @@ import ISO6391 from 'iso-639-1'
import _ from 'lodash'
const specialLanguageCodes = {
+ pdc: 'en',
ja_easy: 'ja',
zh_Hant: 'zh-HANT',
zh: 'zh-Hans'
@@ -18,6 +19,7 @@ const internalToBackendLocaleMulti = codes => {
const getLanguageName = (code) => {
const specialLanguageNames = {
+ pdc: 'Pennsylvania Dutch',
ja_easy: 'やさしいにほんご',
'nan-TW': '臺語(閩南語)',
zh: '简体中文',