i18n
RTL/LTR
{$t} helper
Tester la langue (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
Exemple TString
Nested path
Exemple de chemin
Path string
Exemple de chaîne de chemin
Params (raw)
Mon nom est {name}, mon âge est {age}
Params (with values) name=Jack, age=20
Bonjour, mon nom est Jack et j'ai 20 ans.
Dynamic key
A = 7, B = 9, C = 4, D = 1
File References
Where i18n is wired up
-
Voir
example/lib/widgets/example/i18n.j2.html -
Contrôleur
example/lib/controllers/home_controller.dart -
Répertoire des langues
example/lib/languages