Data schemas

Weblate uses JSON Schema to define layout of external JSON files.

Weblate Translation Memory Schema

type

array

items

The Translation Memory Item

type

object

properties

  • category

The String Category

1 is global, 2 is shared, 10000000+ are project specific, 20000000+ are user specific

type

integer

examples

1

minimum

0

default

1

  • origin

The String Origin

Filename or component name

type

string

examples

test

pattern

^(.*)$

default

  • source

The Source String

type

string

examples

Hello

pattern

^(.+)$

default

  • source_language

The Source Language

ISO 639-1 / ISO 639-2 / IETF BCP 47

type

string

examples

en

pattern

^([^ ]+)$

default

  • target

The Target String

type

string

examples

Ahoj

pattern

^(.+)$

default

  • target_language

The Target Language

ISO 639-1 / ISO 639-2 / IETF BCP 47

type

string

examples

cs

pattern

^([^ ]+)$

default

additionalProperties

False

definitions