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 = 9, B = 2, C = 6, D = 7
File References
Where i18n is wired up
-
عرض
example/lib/widgets/example/i18n.j2.html -
المتحكم
example/lib/controllers/home_controller.dart -
دليل اللغات
example/lib/languages