Remove mock data

This commit is contained in:
Eric Rosenbaum 2019-09-16 18:23:55 -04:00
parent 7011084517
commit b540b2107a

View file

@ -598,35 +598,6 @@ class Scratch3Text2SpeechBlocks {
* @return {array} the text and value for each menu item. * @return {array} the text and value for each menu item.
*/ */
getLanguageMenu () { getLanguageMenu () {
// Mock data to use until we update the scratch-translate-extension-languages
// module.
languageNames.spokenLanguages = {
en: [
{
code: 'zh-cn',
name: 'Chinese (Mandarin)'
}
],
es: [
{
code: 'zh-cn',
name: 'Chino (Mandarín)'
},
{
code: 'hi',
name: 'Hindi'
},
{
code: 'pt-br',
name: 'Portugués (Brasileiro)'
},
{
code: 'es-419',
name: 'Español (Latinoamericano)'
}
]
};
// Get the array of localized language names // Get the array of localized language names
const localizedNameMap = {}; const localizedNameMap = {};
let nameArray = languageNames.menuMap[this.getEditorLanguage()]; let nameArray = languageNames.menuMap[this.getEditorLanguage()];