From 00b989741a1efac61558e570d358b6bee0d87b8f Mon Sep 17 00:00:00 2001 From: tomivm Date: Wed, 20 Apr 2022 19:46:10 -0300 Subject: [PATCH] incorporated --- src/components/Settings/Language/downloadablesTts.json | 9 +++++++++ src/i18n.js | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/components/Settings/Language/downloadablesTts.json b/src/components/Settings/Language/downloadablesTts.json index 1ce316199..afc52931f 100644 --- a/src/components/Settings/Language/downloadablesTts.json +++ b/src/components/Settings/Language/downloadablesTts.json @@ -8,6 +8,15 @@ "vendor": "RHVoice", "website": "https://rhvoice.org/" }, + { + "label": "Cboard Serbian", + "name": "com.unicef.cboardSER", + "langs": ["sr-RS", "sr-SP"], + "url": "https://play.google.com/store/apps/details?id=com.unicef.cboardSER", + "marketId": "com.unicef.cboardSER", + "vendor": "CboardSER", + "website": "" + }, { "label": "Cboard Montenegrin", "name": "com.unicef.cboardMNE", diff --git a/src/i18n.js b/src/i18n.js index e69079401..df9139fa2 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -111,6 +111,8 @@ export function filterLocalLangs(voices) { localLangs = localLangs.map(lang => standardizeLanguageCode(lang)); localLangs = localLangs.map(lang => normalizeLanguageCode(lang)); localLangs = [...new Set(localLangs)].sort(); + //hack to allow download sr-RS like sr-SP + if (localLangs.includes('sr-RS')) localLangs.push('sr-SP'); //Delete zu from localLangs return localLangs.filter( lang => APP_LANGS.includes(lang) && !lang.startsWith('zu-')