i18n
RTL/LTR
{$t} helper
Testaa kieli (i18n)
Translate any string with {$t('key')}, support parameters, dynamic keys, and switch the active language on the fly.
Finnish
fi
Languages
24
Active
fi
Choose a language
Click any flag to switch the active locale
Translation examples
Same template, six different ways to call $t()
Plain string
Esimerkki TString
Nested path
Esimerkki polku
Path string
Esimerkki polku merkkijono
Params (raw)
Nimeni on {name}, ikäni on {age}
Params (with values) name=Jack, age=20
Hei, nimeni on Jack ja olen 20 vuotta vanha.
Dynamic key
A = 4, B = 8, C = 9, D = 1
File References
Where i18n is wired up
-
Näytä
example/lib/widgets/example/i18n.j2.html -
Kontrolleri
example/lib/controllers/home_controller.dart -
Kielikansio
example/lib/languages