Skip to content

Commit

Permalink
Merge pull request #564 from cboard-org/fix-prop-voice
Browse files Browse the repository at this point in the history
The application often does not remember selected language in the settings
  • Loading branch information
martinbedouret authored Nov 20, 2019
2 parents a0dabb3 + 021ecb3 commit 66dd9e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/SpeechProvider/SpeechProvider.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ export class SpeechProvider extends Component {
supportedLangs = sLanguages;
}
}
const lang = supportedLangs.includes(propsLang)
? propsLang
: this.getDefaultLang(supportedLangs);
// hack just for alfanum voice
if (supportedLangs.length === 1 && supportedLangs[0] === 'sr-RS') {
supportedLangs.push('hr-HR');
supportedLangs.push('me-ME');
}
const lang = supportedLangs.includes(propsLang)
? propsLang
: this.getDefaultLang(supportedLangs);
setLangs(supportedLangs);
changeLang(lang);
});
Expand Down

0 comments on commit 66dd9e6

Please sign in to comment.