Units API.

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

GET /api/units/1654690/?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/el/?format=api",
    "source": [
        "actions: [file(1)]\narguments: true\npost-install: <<EOD\n  case \"%1\" in\n  /*) sample_file=\"%1\" ;;\n  *) sample_file=\"%D/%1\" ;;\n  esac\n  target_file=\"${sample_file%.sample}\"\n  set -- %@\n  if [ $# -eq 2 ]; then\n      target_file=${2}\n  fi\n  case \"${target_file}\" in\n  /*) target_file=\"${target_file}\" ;;\n  *) target_file=\"%D/${target_file}\" ;;\n  esac\n  if ! [ -f \"${target_file}\" ]; then\n    /bin/cp -p \"${sample_file}\" \"${target_file}\" && \\\n      /bin/chmod u+w \"${target_file}\"\n  fi\nEOD\npre-deinstall: <<EOD\n  case \"%1\" in\n  /*) sample_file=\"%1\" ;;\n  *) sample_file=\"%D/%1\" ;;\n  esac\n  target_file=\"${sample_file%.sample}\"\n  set -- %@\n  if [ $# -eq 2 ]; then\n      set -- %@\n      target_file=${2}\n  fi\n  case \"${target_file}\" in\n  /*) target_file=\"${target_file}\" ;;\n  *) target_file=\"%D/${target_file}\" ;;\n  esac\n  if cmp -s \"${target_file}\" \"${sample_file}\"; then\n    rm -f \"${target_file}\"\n  else\n    echo \"You may need to manually remove ${target_file} if it is no longer needed.\"\n  fi\nEOD\n"
    ],
    "previous_source": "",
    "target": [
        ""
    ],
    "id_hash": -417901472695729015,
    "content_hash": -417901472695729015,
    "location": "documentation/content/en/books/porters-handbook/plist/_index.adoc:690",
    "context": "",
    "note": "type: delimited block . 4",
    "flags": "no-wrap",
    "labels": [],
    "state": 0,
    "fuzzy": false,
    "translated": false,
    "approved": false,
    "position": 184,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 121,
    "source_unit": "https://translate-dev.freebsd.org/api/units/1161122/?format=api",
    "priority": 100,
    "id": 1654690,
    "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookplist_index/el/?checksum=7a3350d320dbc489",
    "url": "https://translate-dev.freebsd.org/api/units/1654690/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2024-02-17T12:56:31.756357Z"
}