Reference
Languages
The game interface language is chosen per launch with the lang field of /playGame.do.
Codes#
lang is a standard BCP 47 code: en, de, pt-BR, zh-Hans, zh-Hant, es-419, … The platform normalises it before use:
- case does not matter (
PT-br→pt-BR), and_is accepted instead of-(pt_BR); - a few common variants are mapped to the code the games use:
| You send | Used as |
|---|---|
zh, zh-CN, zh-SG | zh-Hans |
zh-TW, zh-HK | zh-Hant |
nb, nn | no |
pt-PT | pt |
en-US, en-GB | en |
sr-Latn-RS | sr-Latn |
uz-Latn-UZ | uz-Latn |
The code is a 2–3 letter language followed by optional subtags separated by - or _ (letters and digits), at most 16 characters in total.
Which languages a game supports#
Each game accepts exactly the languages its client offers. The list is the languages array of the game in GET /games/catalog and the Languages column on the games list. Across the whole catalog there are 47 languages:
| Code | Language | Client code | Games |
|---|---|---|---|
ar | Arabic | — | 642 |
bg | Bulgarian | — | 990 |
bn | Bangla | — | 233 |
cs | Czech | — | 981 |
da | Danish | — | 999 |
de | German | — | 1010 |
el | Greek | — | 990 |
en | English | — | 1010 |
es | Spanish | — | 1010 |
et | Estonian | — | 990 |
fa | Persian | — | 635 |
fi | Finnish | — | 1010 |
fr | French | — | 1010 |
hi | Hindi | — | 123 |
hr | Croatian | — | 919 |
hu | Hungarian | — | 990 |
hy | Armenian | — | 870 |
id | Indonesian | — | 1010 |
is | Icelandic | — | 116 |
it | Italian | — | 1010 |
ja | Japanese | — | 1010 |
ka | Georgian | — | 987 |
ko | Korean | — | 1010 |
lt | Lithuanian | — | 968 |
lv | Latvian | — | 953 |
mk | Macedonian | — | 115 |
ms | Malay | — | 755 |
nl | Dutch | — | 990 |
no | Norwegian | — | 1009 |
pl | Polish | — | 990 |
pt | Portuguese | — | 992 |
pt-BR | Brazilian Portuguese | Endorphina pt_BR, Nolimit City bp | 351 |
ro | Romanian | — | 1010 |
ru | Russian | — | 1010 |
sk | Slovak | — | 891 |
sl | Slovenian | — | 38 |
sr | Serbian | — | 755 |
sr-Latn | Serbian (Latin) | Endorphina sr_Latn | 7 |
sv | Swedish | — | 1010 |
th | Thai | — | 1010 |
tl | Filipino | — | 230 |
tr | Turkish | — | 1010 |
uk | Ukrainian | — | 888 |
uz-Latn | Uzbek (Latin) | Endorphina uz_Latn | 7 |
vi | Vietnamese | — | 1010 |
zh-Hans | Simplified Chinese | Endorphina zh_Hans, Pragmatic Play zh, Nolimit City zh | 782 |
zh-Hant | Traditional Chinese | Endorphina zh_Hant, Pragmatic Play zt, Nolimit City zh-hant | 1005 |
Default language and errors#
- If
langis omitted, the project default language is used (admin panel → Projects → Technical settings; the panel offers Russian, English and Ukrainian). If the game does not offer that default, the launch fails withUNSUPPORTED_LANGUAGE: sendlangexplicitly. - If the code is malformed or the game does not offer it, the launch is answered with HTTP 400
UNSUPPORTED_LANGUAGE. Choose another language or omitlang.
Switching language#
Launch again with another lang. If the player has an unfinished round, the same session continues in the new language; otherwise a new session is created. The session stores the standard code and the game receives the code its own client expects.
The session language is returned in meta.language of the launch response.