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.
| Language | In its own name | Code | Token claim |
|---|---|---|---|
| English | English | en | Leave 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"] |
| Hinglish | Hinglish | hi-Latn | "tutor_languages": ["hi-Latn"] |
| French | Français | fr | "tutor_languages": ["fr"] |
| Spanish | Español | es | "tutor_languages": ["es"] |
iHow this list relates to the language count on our other pages
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.
{
"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.
{
"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{
"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().