Translation

Validate against: http://json-schema.org/draft-07/schema#

Schema ID: http://schemas.digitallinguistics.io/Translation-4.0.0.json

Description

A translation of a piece of data in a language, optionally in multiple languages. For example, a translation might be written in both Spanish and English. Each key must be a valid IETF language tag for a language (see the IETF reference page), and the value for that key must be the translation of the data in that particular language. Note: The Translation does not have a type property.

If the translation is in only one language and that language is English, it may be represented as a simple string instead of an object. Thus instead of gloss: { en "M.SG" } you can simply write gloss: "M.SG".

This item must also validate against exactly one of the following schemas:

  • Type: object

    Regular Expression Properties

    Property names which match one of the following regular expressions must validate against the associated schema.

    • Text: ^(((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+))$

      Type: string

      Description

      The translation in the specified language

    Additional Properties

    Any additional properties must adhere to the following schema:

    No values are valid for this schema.

  • Type: string

Examples

The following are example values for this schema:

  • "man"
  • {
      "en": "man",
      "fr": "homme"
    }