i18n
RTL/LTR
{$t} helper
ทดสอบภาษา (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
ตัวอย่าง TString
Nested path
ตัวอย่างเส้นทาง
Path string
ตัวอย่างสตริงเส้นทาง
Params (raw)
ชื่อของฉันคือ {name} อายุของฉันคือ {age}
Params (with values) name=Jack, age=20
สวัสดี ชื่อของฉันคือ Jack และฉันอายุ 20 ปี
Dynamic key
A = 5, B = 0, C = 1, D = 5
File References
Where i18n is wired up
-
ดู
example/lib/widgets/example/i18n.j2.html -
ตัวควบคุม
example/lib/controllers/home_controller.dart -
ไดเร็กทอรีภาษา
example/lib/languages