Translate () to ()
translate [] to ( v)
Category Translate
Type Reporter
Introduced in 3.0

The Translate () to () block is a Translate Extension block and a reporter block in Scratch 3.0. This block translates a string to a different language. There are currently 48 languages available.

This block requires a connection to the Internet, because it uses the Google Translate API to do so.

Uses

  • To translate something to another language
when gf clicked
say (translate [Hello] to (Dutch v))
  • To create a game that allows several languages in it
when green flag clicked
forever
if <(Chosen Language) = [English]> then
say [Hello] for (2) secs
end
if <(Chosen Language) = [Dutch]> then
say (translate [Hello] to (Dutch v)) for (2) secs
end
if <(Chosen Language) = [German]> then
say (translate [Hello] to (German v)) for (2) secs
end
end

Bad word detection

When a users inserts an inappropriate word into the string input and click the block, it will not output the word. Some Scratchers have used this as a alternative to a whitelist for cloud chat projects[citation needed], however it is not allowed as users can still send mean phrases that do not use bad words or bypass the bad words.

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.