Notell API Docs
Русский

Integration

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 sendUsed as
zh, zh-CN, zh-SGzh-Hans
zh-TW, zh-HKzh-Hant
nb, nnno
pt-PTpt
en-US, en-GBen
sr-Latn-RSsr-Latn
uz-Latn-UZuz-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/health and the Languages column on the games list. Across the whole catalog there are 43 languages:

CodeLanguageGames
arArabic7
bgBulgarian308
csCzech305
daDanish430
deGerman445
elGreek308
enEnglish446
esSpanish445
etEstonian308
fiFinnish445
frFrench445
hiHindi80
hrCroatian308
huHungarian308
hyArmenian235
idIndonesian445
isIcelandic73
itItalian445
jaJapanese445
kaGeorgian308
koKorean445
ltLithuanian308
lvLatvian308
mkMacedonian72
msMalay73
nlDutch308
noNorwegian445
plPolish308
ptPortuguese308
pt-BRBrazilian Portuguese308
roRomanian445
ruRussian446
skSlovak245
srSerbian73
sr-LatnSerbian (Latin)7
svSwedish445
thThai445
trTurkish445
ukUkrainian320
uz-LatnUzbek (Latin)7
viVietnamese445
zh-HansSimplified Chinese217
zh-HantTraditional Chinese445

Default language and errors#

  • If lang is omitted, the project default language is used (admin panel → Projects → Technical settings; the panel offers Russian, English and Ukrainian).
  • 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 omit lang.

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.

Documentation for operators and integrators.TEST_ONLY platform: non-withdrawable units, no real payments.