Description

text
required
string
Text having translations
translations
object
Translations of the text
{
  "en": "Train station",
  "de": "Bahnhof",
  "ru": "Железнодорожная станция"
}

Examples

#1

{
  "text": "Main train station",
  "translations": {
    "de": "Hauptbahnhof",
    "ru": "Главный ж/д вокзал"
  }
}

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/vchezganov/cityvehiclespec/schema/translation.json",
  "title": "Translations",
  "type": "object",
  "properties": {
    "text": {
      "description": "Text having translations",
      "type": "string"
    },
    "translations": {
      "description": "Translations of the text",
      "type": "object"
    }
  },
  "required": [
    "text"
  ]
}