Skip to content

Commit

Permalink
Merge pull request #1181 from tomivm/feature/download-cboardSER
Browse files Browse the repository at this point in the history
Download CboardSER
  • Loading branch information
martinbedouret authored Apr 21, 2022
2 parents f33f31c + c91d197 commit 6ac4a77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Settings/Language/downloadablesTts.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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-')
Expand Down

0 comments on commit 6ac4a77

Please sign in to comment.