i18n
RTL/LTR
{$t} helper
言語テスト (i18n)
Translate any string with {$t('key')}, support parameters, dynamic keys, and switch the active language on the fly.
Japanese
ja
Languages
24
Active
ja
Choose a language
Click any flag to switch the active locale
Translation examples
Same template, six different ways to call $t()
Plain string
例 TString
Nested path
例のパス
Path string
例のパス文字列
Params (raw)
私の名前は{name}、年齢は{age}です
Params (with values) name=Jack, age=20
こんにちは、私の名前はJackで、20歳です。
Dynamic key
A = 0, B = 8, C = 2, D = 9
File References
Where i18n is wired up
-
表示
example/lib/widgets/example/i18n.j2.html -
コントローラー
example/lib/controllers/home_controller.dart -
言語ディレクトリ
example/lib/languages