From 021ecb3163c7662f8f9f4ca907c7ca7a6e82b152 Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 20 Nov 2019 11:36:05 -0300 Subject: [PATCH] fix for alfanum --- src/providers/SpeechProvider/SpeechProvider.container.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/providers/SpeechProvider/SpeechProvider.container.js b/src/providers/SpeechProvider/SpeechProvider.container.js index 20c809dee..051ceebb2 100644 --- a/src/providers/SpeechProvider/SpeechProvider.container.js +++ b/src/providers/SpeechProvider/SpeechProvider.container.js @@ -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); });