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 = 1, B = 0, C = 5, D = 4

File References

Where i18n is wired up

  • Просмотр
    example/lib/widgets/example/i18n.j2.html
  • Контроллер
    example/lib/controllers/home_controller.dart
  • Каталог языков
    example/lib/languages