Languages

The languages a whole lesson can be taught in, how to choose one, and how a student can change language during a lesson.

Lesson languages

A lesson is taught in English unless the session token names another language. The whole lesson is then in that language: the tutor speaks it with a native voice, understands the student speaking it, and writes the board, the questions and the screen labels in it.

LanguageIn its own nameCodeToken claim
EnglishEnglishenLeave tutor_languages out
Japanese日本語ja"tutor_languages": ["ja"]
Chinese (Traditional)繁體中文zh-TW"tutor_languages": ["zh-TW"]
Chinese (Simplified)简体中文zh-CN"tutor_languages": ["zh-CN"]
Hindiहिन्दीhi"tutor_languages": ["hi"]
HinglishHinglishhi-Latn"tutor_languages": ["hi-Latn"]
FrenchFrançaisfr"tutor_languages": ["fr"]
SpanishEspañoles"tutor_languages": ["es"]

iHow this list relates to the language count on our other pages

This page lists the languages a lesson can be taught in from start to finish: 8 today. It is a narrower thing than the 42+ languages quoted elsewhere on this site for the learners the tutor supports. When you need a lesson to run entirely in one language, use a code from this table.

Setting the lesson's language

Put one code, in a list, in the token's tutor_languages claim. Write the topic in the same language.

Token claims: a lesson taught in Hindi
{
  "partner_id": "acme-learning",
  "student_id": "stu_abc123",
  "subject": "math",
  "level": "Grade 8",
  "topic": "Solving linear equations",
  "target_kind": "freestyle",
  "tutor_languages": ["hi"]
}

A code the service does not know is ignored and the lesson runs in English. See Embed Configuration for the other claims.

Hinglish

Hinglish (hi-Latn) is the mix of Hindi and English that many students in India speak. The tutor speaks and listens in that mix, and the board stays in English, as it would in a classroom where the teacher explains in Hindi and writes in English. Choose hi instead for a lesson spoken in Hindi with the board in Hindi.

Changing language during a lesson

By default a lesson stays in its language. With the switch_languages claim, the student may ask the tutor for another one ("can you explain in Hindi?") and the voice, the listening, the board and the screen labels change together. The claim is a list of codes from the table, or "all" for every language in it.

Token claims: an English lesson the student may change to Hindi or Hinglish
{
  "subject": "math",
  "level": "Grade 8",
  "topic": "Fractions",
  "target_kind": "freestyle",
  "switch_languages": ["hi", "hi-Latn"]
}

When a student asks for a language that is not allowed for the session, the tutor says so in a sentence and carries on with the lesson.

Read the list from the API

Languages are added over time, so read the list rather than writing it into your app. The endpoint is public, needs no keys, and may be called from a browser.

curl https://tutor.evelynlearning.com/api/tutor-portal/languages
Response
{
  "languages": [
    {
      "code": "en",
      "label": "English",
      "english": "English",
      "firstTopic": "Solving linear equations"
    },
    {
      "code": "…"
    }
  ]
}

label is the language's name in itself, for a picker; english is its name in English; firstTopic is a starter topic written in the language. The developer package reads the same list with tutor.languages().