i18n
RTL/LTR
{$t} helper
Teste de Idioma (i18n)
Translate any string with {$t('key')}, support parameters, dynamic keys, and switch the active language on the fly.
Portuguese
pt
Languages
24
Active
pt
Choose a language
Click any flag to switch the active locale
Translation examples
Same template, six different ways to call $t()
Plain string
Exemplo TString
Nested path
Exemplo de Caminho
Path string
Exemplo de String de Caminho
Params (raw)
Meu nome é {name}, minha idade é {age}
Params (with values) name=Jack, age=20
Olá, meu nome é Jack e tenho 20 anos.
Dynamic key
A = 7, B = 4, C = 0, D = 5
File References
Where i18n is wired up
-
Visualizar
example/lib/widgets/example/i18n.j2.html -
Controlador
example/lib/controllers/home_controller.dart -
Diretório de idiomas
example/lib/languages