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 = 6, B = 6, C = 5, D = 3
File References
Where i18n is wired up
-
הצג
example/lib/widgets/example/i18n.j2.html -
בקר
example/lib/controllers/home_controller.dart -
תיקיית שפות
example/lib/languages