diff --git a/src/lib/extensions.js b/src/lib/extensions.js index 5ad131308..32259dbcf 100644 --- a/src/lib/extensions.js +++ b/src/lib/extensions.js @@ -12,24 +12,27 @@ const EXTENSION_INFO = { l10nId: 'project.penExtensionChip', icon: 'extension-pen.svg' }, - speak: { - name: 'Amazon Polly' - }, - speech: { - l10nId: 'project.speechExtensionChip' - }, - translate: { - l10nId: 'project.translateExtensionChip', - icon: 'extension-translate.svg' - }, videoSensing: { l10nId: 'project.videoMotionChip', - icon: 'extension-videomotion.svg' + icon: 'extension-videosensing.svg' + }, + text2speech: { + l10nId: 'project.text2SpeechChip', + icon: 'extension-text2speech.svg' + }, + translate: { + l10nId: 'project.translateChip', + icon: 'extension-translate.svg' }, wedo2: { name: 'LEGO WeDo 2.0', icon: 'extension-wedo2.svg', hasStatus: true + }, + ev3: { + name: 'LEGO MINDSTORMS EV3', + icon: 'extension-ev3.svg', + hasStatus: true } }; diff --git a/src/views/preview/l10n.json b/src/views/preview/l10n.json index 0fe42f293..e237c2b44 100644 --- a/src/views/preview/l10n.json +++ b/src/views/preview/l10n.json @@ -5,8 +5,8 @@ "project.titleMaxLength": "Title is too long", "project.musicExtensionChip": "Music", "project.penExtensionChip": "Pen", - "project.speechExtensionChip": "Google Speech", - "project.translateExtensionChip": "Google Translate", + "project.text2SpeechChip": "Text to Speech", + "project.translateChip": "Translate", "project.videoMotionChip": "Video Motion", "project.needsConnection": "Needs Connection", "project.comments.header": "Comments", diff --git a/src/views/preview/preview.jsx b/src/views/preview/preview.jsx index 1bbb5f007..483bfe1c1 100644 --- a/src/views/preview/preview.jsx +++ b/src/views/preview/preview.jsx @@ -194,7 +194,10 @@ class Preview extends React.Component { const extensionSet = new Set(); if (projectData[0].extensions) { projectData[0].extensions.forEach(extension => { - extensionSet.add(EXTENSION_INFO[extension]); + const extensionInfo = EXTENSION_INFO[extension]; + if (extensionInfo) { + extensionSet.add(extensionInfo); + } }); } this.setState({ diff --git a/static/svgs/project/extension-ev3.svg b/static/svgs/project/extension-ev3.svg new file mode 100644 index 000000000..260e2fd26 --- /dev/null +++ b/static/svgs/project/extension-ev3.svg @@ -0,0 +1,23 @@ + + + + ev3-block-icon + Created with Sketch. + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/svgs/project/extension-text2speech.svg b/static/svgs/project/extension-text2speech.svg new file mode 100644 index 000000000..1ce14e3fc --- /dev/null +++ b/static/svgs/project/extension-text2speech.svg @@ -0,0 +1,12 @@ + + + + Extensions/Software/Text-to-Speech-Block + Created with Sketch. + + + + + + + \ No newline at end of file