mit-app-inventor

Languages

About this app

The Languages app is a test of ISO 639 languages, ISO 1366 countries, and UNSD M49 regions supported by the Translator and TextToSpeech MIT App Inventor components (as described in iso.ipynb).

This work was inspired by a Github gist posted by missinglink. The additional wrinkle is that (a) the AvailableCountries property of the TextToSpeech component returns ISO 3166-1 Alpha-3 codes and (b) some of those codes are for regions, not simply countries.

Use

The use of the Languages app follows these basic steps:
  • Use Select Valid Language (with SpinnerL) then Language → Country (with SpinnerL2C) to set a valid country for a given language OR Select Valid Country (with SpinnerC) then Country → Language (with SpinnerC2L) to set a valid language for a given country.
  • Use Translate to translate the TextBox1.Text sample sentence from the default language (e.g. en) to the last-selected language. The sample sentence can be modified in the textbox.
  • Use Speak to speak the translated sample sentence in the last-selected language of the last-selected country.
Languages screenshot

Component-level description

Further explanation TK…

Code

Language blocks

JSON files

Designer

All components retain their default properties, except for some default Text properties set to their component names. This app takes an approach to component properties that sets everything up at runtime with a setup procedure.

setup blocks

🔗 permalink 📦 repository codi .AIA