Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/1812421/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookplist_index/ru/?format=api",
    "source": [
        "Another way of modifying a port's packing list is based on setting the variables `PLIST_FILES` and `PLIST_DIRS`.  The value of each variable is regarded as a list of pathnames to write to [.filename]#TMPPLIST# along with [.filename]#PLIST# contents.  While names listed in `PLIST_FILES` and `PLIST_DIRS` are subject to `%%_VAR_%%` substitution as described above, it is better to use the `${_VAR_}` directly.  Except for that, names from `PLIST_FILES` will appear in the final packing list unchanged, while `@dir` will be prepended to names from `PLIST_DIRS`.  To take effect, `PLIST_FILES` and `PLIST_DIRS` must be set before [.filename]#TMPPLIST# is written, that is, in `pre-install` or earlier."
    ],
    "previous_source": "",
    "target": [
        "Ещё один способ изменения списка упаковки порта основан на установке переменных `PLIST_FILES` и `PLIST_DIRS`. Значение каждой переменной рассматривается как список путей для записи в [.filename]#TMPPLIST# вместе с содержимым [.filename]#PLIST#. Хотя имена, перечисленные в `PLIST_FILES` и `PLIST_DIRS`, подлежат замене `%%_VAR_%%`, как описано выше, лучше использовать `${_VAR_}` напрямую. За исключением этого, имена из `PLIST_FILES` появятся в итоговом списке упаковки без изменений, тогда как к именам из `PLIST_DIRS` будет добавлен префикс `@dir`. Чтобы вступить в силу, `PLIST_FILES` и `PLIST_DIRS` должны быть установлены до записи [.filename]#TMPPLIST#, то есть в `pre-install` или ранее."
    ],
    "id_hash": -2960820238536485375,
    "content_hash": -2960820238536485375,
    "location": "documentation/content/en/books/porters-handbook/plist/_index.adoc:101",
    "context": "",
    "note": "type: Plain text",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 15,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 102,
    "source_unit": "https://translate-dev.freebsd.org/api/units/1242874/?format=api",
    "priority": 100,
    "id": 1812421,
    "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookplist_index/ru/?checksum=56e90dae1e3ed601",
    "url": "https://translate-dev.freebsd.org/api/units/1812421/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2025-05-25T08:27:39.083339Z"
}