# Схеми даних

Weblate використовує [схему JSON](https://json-schema.org/) для визначення компонування системи зовнішніх файлів JSON.

<a id="schema-memory"></a>

## Weblate Translation Memory Schema

|                                                                                       | [https://weblate.org/schemas/weblate-memory.schema.json](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                                                                               |                                                                                                                    |
| - context                                                                             | *The String Context or Key*                                                                                        |
| Translation context or key for monolingual formats                                    |                                                                                                                    |
| type                                                                                  | *string*                                                                                                           |
| examples                                                                              | Greeting used in emails                                                                                            |
| 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                                                                              | cs                                                                                                                 |
| pattern                                                                               | ^[^ ]+$                                                                                                            |
| default                                                                               |                                                                                                                    |
| - status                                                                              | *Status*                                                                                                           |
| type                                                                                  | *integer*                                                                                                          |
| additionalProperties                                                                  | False                                                                                                              |
| definitions                                                                           |                                                                                                                    |

#### SEE ALSO
* [Пам’ять перекладів](https://docs.weblate.org/uk/latest/admin/memory.md#translation-memory)
* [`dump_memory`](https://docs.weblate.org/uk/latest/admin/management.md#weblate-admin-dump_memory)
* [`import_memory`](https://docs.weblate.org/uk/latest/admin/management.md#weblate-admin-import_memory)

<a id="schema-userdata"></a>

## Weblate user data export

|                                | [https://weblate.org/schemas/weblate-userdata.schema.json](https://weblate.org/schemas/weblate-userdata.schema.json)   |
|--------------------------------|------------------------------------------------------------------------------------------------------------------------|
| type                           | *object*                                                                                                               |
| properties                     |                                                                                                                        |
| - **basic**                    | *Basic*                                                                                                                |
| type                           | *object*                                                                                                               |
| properties                     |                                                                                                                        |
| - **username**                 | *Username*                                                                                                             |
| type                           | *string*                                                                                                               |
| examples                       | admin                                                                                                                  |
| default                        |                                                                                                                        |
| - **full_name**                | *Full name*                                                                                                            |
| type                           | *string*                                                                                                               |
| examples                       | Weblate Admin                                                                                                          |
| default                        |                                                                                                                        |
| - **email**                    | *E-mail*                                                                                                               |
| type                           | *string*                                                                                                               |
| examples                       | [noreply@example.com](mailto:noreply@example.com)                                                                      |
| default                        |                                                                                                                        |
| format                         | email                                                                                                                  |
| - **date_joined**              | *Date joined*                                                                                                          |
| type                           | *string*                                                                                                               |
| examples                       | 2019-11-18T18:53:54.862Z                                                                                               |
| default                        |                                                                                                                        |
| format                         | date-time                                                                                                              |
| additionalProperties           | False                                                                                                                  |
| - **profile**                  | *Profile*                                                                                                              |
| type                           | *object*                                                                                                               |
| properties                     |                                                                                                                        |
| - **language**                 | *Language*                                                                                                             |
| type                           | *string*                                                                                                               |
| examples                       | cs                                                                                                                     |
| pattern                        | ^[^ ]\*$                                                                                                               |
| default                        |                                                                                                                        |
| - **suggested**                | *Number of suggested strings*                                                                                          |
| type                           | *integer*                                                                                                              |
| examples                       | 1                                                                                                                      |
| default                        | 0                                                                                                                      |
| - **translated**               | *Number of translated strings*                                                                                         |
| type                           | *integer*                                                                                                              |
| examples                       | 24                                                                                                                     |
| default                        | 0                                                                                                                      |
| - **uploaded**                 | *Number of uploaded screenshots*                                                                                       |
| type                           | *integer*                                                                                                              |
| examples                       | 1                                                                                                                      |
| default                        | 0                                                                                                                      |
| - **hide_completed**           | *Hide completed translations on the dashboard*                                                                         |
| 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                                                                                                                   |
| - wide_tables                  | *Show all columns in lists using horizontal scrolling*                                                                 |
| type                           | *boolean*                                                                                                              |
| examples                       | False                                                                                                                  |
| default                        | False                                                                                                                  |
| - listing_columns              | *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**              | *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                        |                                                                                                                        |
| - theme                        | *Theme*                                                                                                                |
| type                           | *string*                                                                                                               |
| examples                       | auto                                                                                                                   |
| pattern                        | ^(auto|dark|light)$                                                                                                    |
| default                        | auto                                                                                                                   |
| - **dashboard_view**           | *Default dashboard view*                                                                                               |
| type                           | *integer*                                                                                                              |
| examples                       | 1                                                                                                                      |
| default                        | 0                                                                                                                      |
| - **dashboard_component_list** | *Default component list*                                                                                               |
| default                        | null                                                                                                                   |
| anyOf                          | type                                                                                                                   |
| type                           | *integer*                                                                                                              |
| - **languages**                | *Translated languages*                                                                                                 |
| type                           | *array*                                                                                                                |
| default                        |                                                                                                                        |
| items                          | *Language code*                                                                                                        |
| type                           | *string*                                                                                                               |
| examples                       | cs                                                                                                                     |
| 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                        |                                                                                                                        |
| - website                      | *Website URL*                                                                                                          |
| type                           | *string*                                                                                                               |
| - contact                      | *Contact URL*                                                                                                          |
| type                           | *string*                                                                                                               |
| - liberapay                    | *Liberapay username*                                                                                                   |
| type                           | *string*                                                                                                               |
| - fediverse                    | *Fediverse URL*                                                                                                        |
| type                           | *string*                                                                                                               |
| - codesite                     | *Code site URL*                                                                                                        |
| type                           | *string*                                                                                                               |
| - github                       | *GitHub username*                                                                                                      |
| type                           | *string*                                                                                                               |
| - twitter                      | *X username*                                                                                                           |
| type                           | *string*                                                                                                               |
| - linkedin                     | *LinkedIn profile name*                                                                                                |
| type                           | *string*                                                                                                               |
| - location                     | *Location*                                                                                                             |
| type                           | *string*                                                                                                               |
| - company                      | *Company*                                                                                                              |
| type                           | *string*                                                                                                               |
| - public_email                 | *Public email*                                                                                                         |
| type                           | *string*                                                                                                               |
| - commit_email                 | *Commit email*                                                                                                         |
| type                           | *string*                                                                                                               |
| - nearby_strings               | *Number of nearby strings*                                                                                             |
| type                           | *integer*                                                                                                              |
| - commit_name                  | *Commit name choice*                                                                                                   |
| type                           | *integer*                                                                                                              |
| - auto_watch                   | *Automatically watch projects*                                                                                         |
| type                           | *boolean*                                                                                                              |
| - contribute_personal_tm       | *Contribute to personal translation memory*                                                                            |
| type                           | *boolean*                                                                                                              |
| - commented                    | *Number of commented strings*                                                                                          |
| type                           | *integer*                                                                                                              |
| - last_2fa                     | *Last used two-factor method*                                                                                          |
| type                           | *string*                                                                                                               |
| additionalProperties           | False                                                                                                                  |
| - **auditlog**                 | *Audit log*                                                                                                            |
| type                           | *array*                                                                                                                |
| default                        |                                                                                                                        |
| items                          | *Items*                                                                                                                |
| type                           | *object*                                                                                                               |
| properties                     |                                                                                                                        |
| - **address**                  | *IP address*                                                                                                           |
| anyOf                          | type                                                                                                                   |
| 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                        |                                                                                                                        |
| format                         | date-time                                                                                                              |
| - **activity**                 | *Activity*                                                                                                             |
| type                           | *string*                                                                                                               |
| examples                       | login                                                                                                                  |
| pattern                        | ^.\*$                                                                                                                  |
| default                        |                                                                                                                        |
| additionalProperties           | False                                                                                                                  |
| - notifications                | *General notification settings*                                                                                        |
| type                           | *array*                                                                                                                |
| items                          | type                                                                                                                   |
| properties                     |                                                                                                                        |
| - **notification**             | type                                                                                                                   |
| - **scope**                    | type                                                                                                                   |
| - **frequency**                | type                                                                                                                   |
| - **project**                  | *Project slug*                                                                                                         |
| type                           | *string* / *null*                                                                                                      |
| - **component**                | *Component path*                                                                                                       |
| type                           | *string* / *null*                                                                                                      |
| - **onetime**                  | *One-time notification*                                                                                                |
| type                           | *boolean*                                                                                                              |
| additionalProperties           | False                                                                                                                  |
| definitions                    |                                                                                                                        |

#### SEE ALSO
* [Профіль користувача](https://docs.weblate.org/uk/latest/user/profile.md#user-profile)
* [`dumpuserdata`](https://docs.weblate.org/uk/latest/admin/management.md#weblate-admin-dumpuserdata)

<a id="schema-messaging"></a>

## Weblate Messaging

| [https://weblate.org/schemas/weblate-messaging.schema.json](https://weblate.org/schemas/weblate-messaging.schema.json)   |
|--------------------------------------------------------------------------------------------------------------------------|
| Schema for Weblate Messaging                                                                                             |
| type                                                                                                                     |
| properties                                                                                                               |
| - **change_id**                                                                                                          |
| Числовий ідентифікатор зміни                                                                                             |
| type                                                                                                                     |
| - **action**                                                                                                             |
| Verbose name of the change, see Change actions source code for possible values                                           |
| type                                                                                                                     |
| - **timestamp**                                                                                                          |
| Часова позначка у форматі ISO                                                                                            |
| type                                                                                                                     |
| format                                                                                                                   |
| - target                                                                                                                 |
| Нове значення зміни (тобто новий переклад рядка)                                                                         |
| type                                                                                                                     |
| - old                                                                                                                    |
| Старе значення зміни (тобто попередній переклад рядка)                                                                   |
| type                                                                                                                     |
| - source                                                                                                                 |
| Source string                                                                                                            |
| type                                                                                                                     |
| - url                                                                                                                    |
| Absolute URL to view the related object                                                                                  |
| type                                                                                                                     |
| - author                                                                                                                 |
| Ім’я користувача автора (може відрізнятися від користувача, наприклад, при затвердженні пропозицій)                      |
| type                                                                                                                     |
| - user                                                                                                                   |
| type                                                                                                                     |
| - project                                                                                                                |
| type                                                                                                                     |
| - component                                                                                                              |
| type                                                                                                                     |
| - translation                                                                                                            |
| type                                                                                                                     |
| - category                                                                                                               |
| type                                                                                                                     |
| items                                                                                                                    |
| type                                                                                                                     |
| - context                                                                                                                |
| type                                                                                                                     |
| additionalProperties                                                                                                     |
| definitions                                                                                                              |

#### SEE ALSO
* [Повідомлення Fedora](https://docs.weblate.org/uk/latest/admin/addons.md#fedora-messaging)
* [Дієскрипт](https://docs.weblate.org/uk/latest/admin/addons.md#addon-weblate-webhook-webhook)
* [Вибрані події зміни](https://docs.weblate.org/uk/latest/admin/addons.md#change-actions)
