Give the gift of coding this Christmas and sparks a child's coding journey! 😃🎮💻 Get a gift card
Scratch Language
Hard
40 mins
170 points
What you need:
  • Computer/laptop

Translate

Learn how to translate text to different languages in Scratch and have a sprite speak the translation out loud.

1 - Create a new project

We will be coding a project to allow us to translate from English to another language.

Go to the Scratch website and create a new project, you can delete the cat sprite.

https://scratch.mit.edu/projects/

2 - Add the Translate extension

Add the Translate extension to your project.


3 - Add the Text to Speech extension

Add the Text to Speech extension to your project.


4 - Add the Kai sprite

Add the Kai sprite from the library. We will use this sprite to ask what you want to translate and to say the answer.

Add the following code to the Kai sprite to position him in the centre.

when green flag clicked go to x: (0) y: (0)


5 - Create 2 variables

We need the following 2 variables in our project:

  • language - to store what language we want to translate to.
  • translation - to store the translation of what we wanted to translate.

Create the 2 variables.

Join our club 😃

To view the remaining 5 steps and access hundreds of other coding projects please login or create an account.

Copyright Notice
This lesson is copyright of Coding Ireland. Unauthorised use, copying or distribution is not allowed.

Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. It is available for free at https://scratch.mit.edu
🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more