mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -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];
|
||||
if (nameArray) {
|
||||
// Also get any localized names of spoken languages
|
||||
const spokenNameArray = languageNames.spokenLanguages[editorLanguage];
|
||||
if (spokenNameArray) {
|
||||
let spokenNameArray = [];
|
||||
if (languageNames.spokenLanguages) {
|
||||
spokenNameArray = languageNames.spokenLanguages[editorLanguage];
|
||||
nameArray = nameArray.concat(spokenNameArray);
|
||||
}
|
||||
// Create a map of language code to localized name
|
||||
|
|
Loading…
Reference in a new issue