mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Check for spokenLanguages object
This commit is contained in:
parent
246e40a68c
commit
83781fd380
1 changed files with 3 additions and 2 deletions
|
@ -609,8 +609,9 @@ class Scratch3Text2SpeechBlocks {
|
||||||
let nameArray = languageNames.menuMap[editorLanguage];
|
let nameArray = languageNames.menuMap[editorLanguage];
|
||||||
if (nameArray) {
|
if (nameArray) {
|
||||||
// Also get any localized names of spoken languages
|
// Also get any localized names of spoken languages
|
||||||
const spokenNameArray = languageNames.spokenLanguages[editorLanguage];
|
let spokenNameArray = [];
|
||||||
if (spokenNameArray) {
|
if (languageNames.spokenLanguages) {
|
||||||
|
spokenNameArray = languageNames.spokenLanguages[editorLanguage];
|
||||||
nameArray = nameArray.concat(spokenNameArray);
|
nameArray = nameArray.concat(spokenNameArray);
|
||||||
}
|
}
|
||||||
// Create a map of language code to localized name
|
// Create a map of language code to localized name
|
||||||
|
|
Loading…
Reference in a new issue