i18n
RTL/LTR
{$t} helper
Probar idioma (i18n)
Translate any string with {$t('key')}, support parameters, dynamic keys, and switch the active language on the fly.
Spanish
es
Languages
24
Active
es
Choose a language
Click any flag to switch the active locale
Translation examples
Same template, six different ways to call $t()
Plain string
Ejemplo de TString
Nested path
Ruta de ejemplo
Path string
Cadena de ruta de ejemplo
Params (raw)
Mi nombre es {name}, mi edad es {age}
Params (with values) name=Jack, age=20
Hola, mi nombre es Jack y tengo 20 años.
Dynamic key
A = 3, B = 0, C = 7, D = 6
File References
Where i18n is wired up
-
Ver
example/lib/widgets/example/i18n.j2.html -
Controlador
example/lib/controllers/home_controller.dart -
Directorio de idiomas
example/lib/languages