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 |
|||
|
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 |
||
|
The String Origin |
||
Filename or component name |
|||
type |
string |
||
examples |
test |
||
pattern |
^(.*)$ |
||
default |
|||
|
The Source String |
||
type |
string |
||
examples |
Hello |
||
pattern |
^(.+)$ |
||
default |
|||
|
The Source Language |
||
ISO 639-1 / ISO 639-2 / IETF BCP 47 |
|||
type |
string |
||
examples |
en |
||
pattern |
^([^ ]+)$ |
||
default |
|||
|
The Target String |
||
type |
string |
||
examples |
Ahoj |
||
pattern |
^(.+)$ |
||
default |
|||
|
The Target Language |
||
ISO 639-1 / ISO 639-2 / IETF BCP 47 |
|||
type |
string |
||
examples |
cs |
||
pattern |
^([^ ]+)$ |
||
default |
|||
additionalProperties |
False |
||
definitions |
См.также