Skip to content

Localized String

Properties (labels and headers) can be plain strings or translation objects.

Variants

Plain String

json
{
  "label": "Description"
}

Translation Object

json
{
  "label": {
    "ru": "Название",
    "en": "Name"
  }
}

Translation key

If a localized string contains text formatted like _t(key) it will be rendered with related values from the i18n dictionary of the Nuxt application.

Both strings and objects can contain translation keys.

json
{
  "label": "_t(label.modified_at)"
}
json
{
  "label": {
    "ru": "_t(label.name) сущности",
    "en": "_t(label.name) of entity"
  }
}