Units API.

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

GET /api/units/1819844/?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/articlescommitters-guide_index/en/?format=api",
    "source": [
        "Often pull requests are simple: requests that contain only a single commit.  In this case, a streamlined approach may be used, though the approach in the prior section will also work.  Here, a branch is created, the change is cherry picked, the commit message adjusted, and sanity-checked before being pushed.  The branch `staging` is used in this example but it can be any name.  This technique works for any number of commits in the pull request, especially when the changes apply cleanly to the FreeBSD tree.  However, when there's multiple commits, especially when minor adjustments are needed, `git rebase -i` works better than `git cherry-pick`.  Briefly, these commands create a branch; cherry-picks the changes from the pull request; tests it; adjusts the commit messages; and fast forward merges it back to `main`.  The PR number is `$PR` below.  When adjusting the message, add `Pull Request: https://github.com/freebsd-src/pull/$PR`.  All pull requests committed to the FreeBSD repository should be reviewed by at least one person.  This need not be the person committing it, but in that case the person committing it should trust the other reviewers competence to review the commit.  Committers that do a code review of pull requests before pushing them into the repo should add a `Reviewed by:` line to the commit, because in this case it is not implicit.  Add anybody that reviews and approves the commit on github to `Reviewed by:` as well.  As always, care should be taken to ensure the change does what it is supposed to, and that no malicious code is present."
    ],
    "previous_source": "",
    "target": [
        "Often pull requests are simple: requests that contain only a single commit.  In this case, a streamlined approach may be used, though the approach in the prior section will also work.  Here, a branch is created, the change is cherry picked, the commit message adjusted, and sanity-checked before being pushed.  The branch `staging` is used in this example but it can be any name.  This technique works for any number of commits in the pull request, especially when the changes apply cleanly to the FreeBSD tree.  However, when there's multiple commits, especially when minor adjustments are needed, `git rebase -i` works better than `git cherry-pick`.  Briefly, these commands create a branch; cherry-picks the changes from the pull request; tests it; adjusts the commit messages; and fast forward merges it back to `main`.  The PR number is `$PR` below.  When adjusting the message, add `Pull Request: https://github.com/freebsd-src/pull/$PR`.  All pull requests committed to the FreeBSD repository should be reviewed by at least one person.  This need not be the person committing it, but in that case the person committing it should trust the other reviewers competence to review the commit.  Committers that do a code review of pull requests before pushing them into the repo should add a `Reviewed by:` line to the commit, because in this case it is not implicit.  Add anybody that reviews and approves the commit on github to `Reviewed by:` as well.  As always, care should be taken to ensure the change does what it is supposed to, and that no malicious code is present."
    ],
    "id_hash": -1137315355547288082,
    "content_hash": -1137315355547288082,
    "location": "documentation/content/en/articles/committers-guide/_index.adoc:2089",
    "context": "",
    "note": "type: Plain text",
    "flags": "",
    "labels": [],
    "state": 100,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 580,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": true,
    "num_words": 258,
    "source_unit": "https://translate-dev.freebsd.org/api/units/1819844/?format=api",
    "priority": 100,
    "id": 1819844,
    "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlescommitters-guide_index/en/?checksum=703771b5bb01bdee",
    "url": "https://translate-dev.freebsd.org/api/units/1819844/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2025-08-17T20:19:16.117660Z"
}