Enable superlang in Conf.php:
nano /home/totum/totum-mit/Conf.php
Add after the line with the main language const LANG = "en";:
const isSuperlang = true; // - add to Conf.php
Be sure to execute from the root installation folder:
bin/totum schemas-update
In the settings table, specify the list of available languages in the h_pro_langs field:
[
"en",
"es"
]
Available options: en, ru, es, de.
Currently does not work for anonymous tables and forms.
For the Creator, a technical Selector is available, which has a neutral mode where translation keys are visible:

For the user, switching between languages is done from the user menu:

It is possible to preset the language for the user and lock its change in the users table:

ttm__langs — specify the two-letter code from the available system languages. If empty, the default language is used.
ttm__block_lang — locks the language change for the user.
A translation key in the format {[key_name]} can be specified anywhere in the system, and the ttm__langs table specifies the correspondences for all used languages.


A translation key can also be specified directly in a field or in code, without using the key table, in the format
{[en:'Text in english';ru:'Текст на русском']}

f1=: setFormat(condition: $#nfv = ""; text: "{[en:'Empty';es:'Está vacío']}")
f2=: setFormat(condition: $#nfv = 3; comment: "{[some_key_from_table]}")