Scéimeanna sonraí¶
Úsáideann Weblate Scéimre JSON chun leagan amach na gcomhad seachtrach JSON a shainiú.
The published schemas use JSON Schema Draft 2020-12. External validators must
support this draft and enable format checking to enforce dates, hostnames, and
IRIs, as Weblate does. Reusable schema definitions use $defs.
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.tmx |
||
project/component |
|||
default |
|||
|
The String Context or Key |
||
Translation context or key for monolingual formats |
|||
type |
string |
||
examples |
Greeting used in emails |
||
default |
|||
|
The Source String |
||
type |
string |
||
examples |
Hello |
||
minLength |
1 |
||
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 |
||
minLength |
1 |
||
default |
|||
|
The Target Language |
||
ISO 639-1 / ISO 639-2 / IETF BCP 47 |
|||
type |
string |
||
examples |
cs |
||
pattern |
^[^ ]+$ |
||
default |
|||
|
Status |
||
type |
integer |
||
additionalProperties |
false |
||
$defs |
|||
See also
Weblate user data export¶
type |
object |
||||
properties |
|||||
|
Basic |
||||
type |
object |
||||
properties |
|||||
|
Username |
||||
type |
string |
||||
examples |
admin |
||||
default |
|||||
|
Full name |
||||
type |
string |
||||
examples |
Weblate Admin |
||||
default |
|||||
|
|||||
type |
string |
||||
examples |
|||||
default |
|||||
format |
|||||
|
Date joined |
||||
type |
string |
||||
examples |
2019-11-18T18:53:54.862Z |
||||
default |
|||||
format |
date-time |
||||
additionalProperties |
false |
||||
|
Profile |
||||
type |
object |
||||
properties |
|||||
|
Language |
||||
type |
string |
||||
examples |
cs |
||||
pattern |
^[^ ]*$ |
||||
default |
|||||
|
Number of suggested strings |
||||
type |
integer |
||||
examples |
1 |
||||
default |
0 |
||||
|
Number of translated strings |
||||
type |
integer |
||||
examples |
24 |
||||
default |
0 |
||||
|
Number of uploaded screenshots |
||||
type |
integer |
||||
examples |
1 |
||||
default |
0 |
||||
|
Hide completed translations on the dashboard |
||||
type |
boolean |
||||
examples |
false |
||||
default |
true |
||||
|
Show secondary translations in the Zen mode |
||||
type |
boolean |
||||
examples |
true |
||||
default |
true |
||||
|
Hide source if a secondary translation exists |
||||
type |
boolean |
||||
examples |
false |
||||
default |
true |
||||
|
Show all columns in lists using horizontal scrolling |
||||
type |
boolean |
||||
examples |
false |
||||
default |
false |
||||
|
Visible columns in lists |
||||
type |
array |
||||
default |
untranslated |
||||
untranslated_words |
|||||
untranslated_chars |
|||||
nottranslated |
|||||
checks |
|||||
suggestions |
|||||
comments |
|||||
items |
Column |
||||
type |
string |
||||
enum |
total, untranslated, untranslated_words, untranslated_chars, nottranslated, checks, suggestions, comments |
||||
examples |
checks |
||||
|
Editor link |
||||
type |
string |
||||
examples |
|||||
pattern |
^.*$ |
||||
default |
|||||
|
Translation editor mode |
||||
type |
integer |
||||
examples |
0 |
||||
default |
0 |
||||
|
Zen editor mode |
||||
type |
integer |
||||
examples |
0 |
||||
default |
0 |
||||
|
Special characters |
||||
type |
string |
||||
examples |
|||||
pattern |
^.*$ |
||||
default |
|||||
|
Theme |
||||
type |
string |
||||
examples |
auto |
||||
pattern |
^(auto|dark|light)$ |
||||
default |
auto |
||||
|
Default dashboard view |
||||
type |
integer |
||||
examples |
1 |
||||
default |
0 |
||||
|
Default component list |
||||
default |
null |
||||
anyOf |
type |
null |
|||
type |
integer |
||||
|
Translated languages |
||||
type |
array |
||||
default |
|||||
items |
Language code |
||||
type |
string |
||||
examples |
cs |
||||
pattern |
^.*$ |
||||
default |
|||||
|
Secondary languages |
||||
type |
array |
||||
default |
|||||
items |
Language code |
||||
type |
string |
||||
examples |
sk |
||||
pattern |
^.*$ |
||||
default |
|||||
|
Watched projects |
||||
type |
array |
||||
default |
|||||
items |
Project slug |
||||
type |
string |
||||
examples |
weblate |
||||
pattern |
^.*$ |
||||
default |
|||||
|
Website URL |
||||
type |
string |
||||
|
Contact URL |
||||
type |
string |
||||
|
Liberapay username |
||||
type |
string |
||||
|
Fediverse URL |
||||
type |
string |
||||
|
Code site URL |
||||
type |
string |
||||
|
GitHub username |
||||
type |
string |
||||
|
X username |
||||
type |
string |
||||
|
LinkedIn profile name |
||||
type |
string |
||||
|
Location |
||||
type |
string |
||||
|
Company |
||||
type |
string |
||||
|
Public email |
||||
type |
string |
||||
|
Commit email |
||||
type |
string |
||||
|
Number of nearby strings |
||||
type |
integer |
||||
|
Commit name choice |
||||
type |
integer |
||||
|
Automatically watch projects |
||||
type |
boolean |
||||
|
Contribute to personal translation memory |
||||
type |
boolean |
||||
|
Number of commented strings |
||||
type |
integer |
||||
|
Last used two-factor method |
||||
type |
string |
||||
additionalProperties |
false |
||||
|
Audit log |
||||
type |
array |
||||
default |
|||||
items |
Items |
||||
type |
object |
||||
properties |
|||||
|
IP address |
||||
anyOf |
type |
null |
|||
type |
string |
||||
examples |
127.0.0.1 |
||||
pattern |
^.*$ |
||||
default |
|||||
|
User agent |
||||
type |
string |
||||
examples |
PC / Linux / Firefox 70.0 |
||||
pattern |
^.*$ |
||||
default |
|||||
|
Timestamp |
||||
type |
string |
||||
examples |
2019-11-18T18:58:30.845Z |
||||
default |
|||||
format |
date-time |
||||
|
Activity |
||||
type |
string |
||||
examples |
login |
||||
pattern |
^.*$ |
||||
default |
|||||
additionalProperties |
false |
||||
|
General notification settings |
||||
type |
array |
||||
items |
type |
object |
|||
properties |
|||||
|
type |
string |
|||
|
type |
integer |
|||
|
type |
integer |
|||
|
Project slug |
||||
type |
string / null |
||||
|
Component path |
||||
type |
string / null |
||||
|
One-time notification |
||||
type |
boolean |
||||
additionalProperties |
false |
||||
|
User saved searches |
||||
type |
array |
||||
items |
type |
object |
|||
properties |
|||||
|
type |
string |
|||
|
type |
string |
|||
|
type |
string |
|||
additionalProperties |
false |
||||
$defs |
|||||
See also
Weblate Messaging¶
Schema for Weblate Messaging |
|||
type |
object |
||
properties |
|||
|
Change ID |
||
ID uimhriúil an athraithe |
|||
type |
integer |
||
|
Change Action |
||
Verbose name of the change, see Change actions source code for possible values |
|||
type |
string |
||
|
Timestamp |
||
Stampa ama formáidithe ISO |
|||
type |
string |
||
format |
date-time |
||
|
Target |
||
Luach nua an athraithe (m.sh. aistriúchán nua ar an teaghrán) |
|||
type |
string / array |
||
|
Old Value |
||
Seanluach an athraithe (m.sh. aistriúchán na teaghrán roimhe seo) |
|||
type |
string / array |
||
|
Source |
||
Source string |
|||
type |
string / array |
||
|
URL |
||
Absolute URL to view the related object |
|||
type |
string |
||
|
Author |
||
Ainm úsáideora an údair (is féidir é seo a bheith difriúil ón úsáideoir mar shampla nuair a ghlactar le moltaí) |
|||
type |
string |
||
|
Acting username |
||
type |
string |
||
|
Project slug |
||
type |
string |
||
|
Component slug |
||
type |
string |
||
|
Translation Language Code |
||
type |
string |
||
|
Category and subcategory slugs |
||
type |
array |
||
items |
Category slug |
||
type |
string |
||
|
Translation context or key for monolingual formats |
||
type |
string |
||
additionalProperties |
false |
||
$defs |
|||
CDN manifest¶
https://weblate.org/schemas/weblate-cdn-manifest.schema.json |
|||||
Translation files published by the JavaScript and translation files CDN add-ons. |
|||||
type |
object |
||||
properties |
|||||
|
const |
1 |
|||
|
Published files keyed by Weblate language code; an empty object is allowed. Files are sorted by URL. |
||||
type |
object |
||||
additionalProperties |
type |
array |
|||
items |
type |
object |
|||
properties |
|||||
|
File URL relative to the manifest URL, including percent-encoded nested paths. Published files are mutable. |
||||
type |
string |
||||
minLength |
1 |
||||
|
SHA-256 checksum of the published bytes. |
||||
type |
string |
||||
pattern |
^[0-9a-f]{64}$(?![\s\S]) |
||||
|
File size in bytes; empty files are allowed. |
||||
type |
integer |
||||
minimum |
0 |
||||
additionalProperties |
false |
||||
minItems |
1 |
||||
propertyNames |
minLength |
1 |
|||
additionalProperties |
false |
||||
See also
Kotlin SDK build registration¶
https://weblate.org/schemas/weblate-kotlin-sdk-build.schema.json |
|||
Resource IDs from a final Android build, submitted to the Kotlin SDK CDN add-on. |
|||
type |
object |
||
properties |
|||
|
Build metadata format version. |
||
default |
1 |
||
const |
1 |
||
|
Android application package name. |
||
type |
string |
||
maxLength |
127 |
||
pattern |
^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)+$(?![\s\S]) |
||
|
type |
integer |
|
maximum |
2100000000 |
||
minimum |
1 |
||
|
default |
||
|
default |
||
additionalProperties |
false |
||
anyOf |
properties |
||
|
minProperties |
1 |
|
properties |
|||
|
minProperties |
1 |
|
resources¶
type |
object |
|
additionalProperties |
type |
string |
pattern |
^0x7[fF](?!00)[0-9a-fA-F]{6}$(?![\s\S]) |
|
propertyNames |
pattern |
^[a-zA-Z_][a-zA-Z0-9_.]*$(?![\s\S]) |
See also
Kotlin SDK CDN manifest¶
https://weblate.org/schemas/weblate-kotlin-sdk-manifest.schema.json |
||||
Published ARSC artifacts for one registered Android build. |
||||
type |
object |
|||
properties |
||||
|
const |
1 |
||
|
type |
string |
||
maxLength |
127 |
|||
pattern |
^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)+$(?![\s\S]) |
|||
|
type |
integer |
||
maximum |
2100000000 |
|||
minimum |
1 |
|||
|
Artifacts keyed by Weblate language code; an empty object is allowed. |
|||
type |
object |
|||
additionalProperties |
type |
object |
||
properties |
||||
|
Artifact URL relative to the manifest URL. |
|||
type |
string |
|||
pattern |
^\.\./\.\./artifacts/[0-9a-f]{64}\.arsc$(?![\s\S]) |
|||
|
type |
string |
||
pattern |
^[0-9a-f]{64}$(?![\s\S]) |
|||
|
Artifact size in bytes. |
|||
type |
integer |
|||
minimum |
1 |
|||
additionalProperties |
false |
|||
propertyNames |
minLength |
1 |
||
additionalProperties |
false |
|||
See also