i18n
RTL/LTR
{$t} helper
Sprache testen (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
Beispiel TString
Nested path
Beispielpfad
Path string
Beispiel Pfad-String
Params (raw)
Mein Name ist {name}, mein Alter ist {age}
Params (with values) name=Jack, age=20
Hallo, mein Name ist Jack und ich bin 20 Jahre alt.
Dynamic key
A = 0, B = 7, C = 6, D = 0
File References
Where i18n is wired up
-
Anzeigen
example/lib/widgets/example/i18n.j2.html -
Controller
example/lib/controllers/home_controller.dart -
Sprachverzeichnis
example/lib/languages