Data schemas

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

Esquema de memória de tradução do Weblate

https://weblate.org/schemas/weblate-memory.schema.json

tipo

array

items

O item da memória de tradução

tipo

objeto

propriedades

  • category

The String Category

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

tipo

integer

examples

1

minimum

0

default

1

  • origin

The String Origin

Filename or component name

tipo

string

examples

test

pattern

^(.*)$

default

  • source

The Source String

tipo

string

examples

Hello

pattern

^(.+)$

default

  • source_language

The Source Language

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

tipo

string

examples

en

pattern

^([^ ]+)$

default

  • target

The Target String

tipo

string

examples

Ahoj

pattern

^(.+)$

default

  • target_language

The Target Language

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

tipo

string

examples

cs

pattern

^([^ ]+)$

default

additionalProperties

False

definitions

Weblate user data export

https://weblate.org/schemas/weblate-userdata.schema.json

tipo

objeto

propriedades

  • basic

Basic

tipo

objeto

propriedades

  • username

Username

tipo

string

examples

admin

pattern

^.*$

default

  • full_name

Full name

tipo

string

examples

Weblate Admin

pattern

^.*$

default

  • email

E-mail

tipo

string

examples

noreply@example.com

pattern

^.*$

default

  • date_joined

Date joined

tipo

string

examples

2019-11-18T18:53:54.862Z

pattern

^.*$

default

  • profile

Profile

tipo

objeto

propriedades

  • language

Language

tipo

string

examples

cs

pattern

^.*$

default

  • suggested

Number of suggested strings

tipo

integer

examples

1

default

0

  • translated

Number of translated strings

tipo

integer

examples

24

default

0

  • uploaded

Number of uploaded screenshots

tipo

integer

examples

1

default

0

  • hide_completed

Hide completed translations on the dashboard

tipo

boolean

examples

False

default

True

  • secondary_in_zen

Show secondary translations in the Zen mode

tipo

boolean

examples

True

default

True

  • hide_source_secondary

Hide source if a secondary translation exists

tipo

boolean

examples

False

default

True

  • editor_link

Editor link

tipo

string

examples

pattern

^.*$

default

  • translate_mode

Translation editor mode

tipo

integer

examples

0

default

0

  • zen_mode

Zen editor mode

tipo

integer

examples

0

default

0

  • special_chars

Special characters

tipo

string

examples

pattern

^.*$

default

  • dashboard_view

Default dashboard view

tipo

integer

examples

1

default

0

  • dashboard_component_list

Default component list

default

None

anyOf

tipo

null

tipo

integer

  • languages

Translated languages

tipo

array

default

items

Language code

tipo

string

examples

cs

pattern

^.*$

default

  • secondary_languages

Secondary languages

tipo

array

default

items

Language code

tipo

string

examples

sk

pattern

^.*$

default

  • watched

Watched projects

tipo

array

default

items

Project slug

tipo

string

examples

weblate

pattern

^.*$

default

  • auditlog

Audit log

tipo

array

default

items

Items

tipo

objeto

propriedades

  • address

IP address

tipo

string

examples

127.0.0.1

pattern

^.*$

default

  • user_agent

User agent

tipo

string

examples

PC / Linux / Firefox 70.0

pattern

^.*$

default

  • timestamp

Timestamp

tipo

string

examples

2019-11-18T18:58:30.845Z

pattern

^.*$

default

  • activity

Activity

tipo

string

examples

login

pattern

^.*$

default

definitions