i18n
RTL/LTR
{$t} helper
Test jazyka (i18n)
Translate any string with {$t('key')}, support parameters, dynamic keys, and switch the active language on the fly.
Choose a language
Click any flag to switch the active locale
Translation examples
Same template, six different ways to call $t()
Plain string
Příklad TString
Nested path
Příklad cesty
Path string
Příklad řetězce cesty
Params (raw)
Mé jméno je {name}, můj věk je {age}
Params (with values) name=Jack, age=20
Ahoj, jmenuji se Jack a je mi 20 let.
Dynamic key
A = 4, B = 0, C = 6, D = 5
File References
Where i18n is wired up
-
Zobrazit
example/lib/widgets/example/i18n.j2.html -
Kontroler
example/lib/controllers/home_controller.dart -
Adresář jazyků
example/lib/languages