Data schemas

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

Weblate Translation Memory Schema

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

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.tmx

project/component

default

  • source

The Source String

type

string

examples

Hello

minLength

1

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

minLength

1

default

  • target_language

The Target Language

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

type

string

examples

Tr

pattern

^[^ ]+$

default

additionalProperties

False

definitions

Weblate user data export

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

type

object

properties

  • basic

Temel

type

object

properties

  • username

Kullanıcı adı

type

string

examples

admin

default

  • full_name

Ad soyad

type

string

examples

Weblate Yöneticisi

default

  • email

E-posta

type

string

examples

noreply@ornek.com

default

biçim

e-posta

  • date_joined

Katılma tarihi

type

string

examples

2019-11-18T18:53:54.862Z

default

biçim

date-time

additionalProperties

False

  • profile

Profil

type

object

properties

  • language

Dil

type

string

examples

Tr

pattern

^[^ ]*$

default

  • suggested

Önerilmiş dizge sayısı

type

integer

examples

1

default

0

  • translated

Çevrilmiş dizge sayısı

type

integer

examples

24

default

0

  • uploaded

Yüklenmiş ekran görüntüsü sayısı

type

integer

examples

1

default

0

  • hide_completed

Tamamlanmış çeviriler panoda gizlensin

type

boolean

examples

False

default

True

  • secondary_in_zen

Show secondary translations in the Zen mode

type

boolean

examples

True

default

True

  • hide_source_secondary

Hide source if a secondary translation exists

type

boolean

examples

False

default

True

  • editor_link

Editor link

type

string

examples

pattern

^.*$

default

  • translate_mode

Translation editor mode

type

integer

examples

0

default

0

  • zen_mode

Zen editor mode

type

integer

examples

0

default

0

  • special_chars

Special characters

type

string

examples

pattern

^.*$

default

  • dashboard_view

Default dashboard view

type

integer

examples

1

default

0

  • dashboard_component_list

Default component list

default

null

anyOf

type

null

type

integer

  • languages

Translated languages

type

array

default

items

Language code

type

string

examples

Tr

pattern

^.*$

default

  • secondary_languages

Secondary languages

type

array

default

items

Language code

type

string

examples

sk

pattern

^.*$

default

  • watched

Watched projects

type

array

default

items

Project slug

type

string

examples

weblate

pattern

^.*$

default

additionalProperties

False

  • auditlog

Audit log

type

array

default

items

Items

type

object

properties

  • address

IP address

type

string

examples

127.0.0.1

pattern

^.*$

default

  • user_agent

User agent

type

string

examples

PC / Linux / Firefox 70.0

pattern

^.*$

default

  • timestamp

Timestamp

type

string

examples

2019-11-18T18:58:30.845Z

default

biçim

date-time

  • activity

Activity

type

string

examples

login

pattern

^.*$

default

additionalProperties

False

definitions

Ayrıca bakınız

Kullanıcı profili, dumpuserdata