Units API

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

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

{
    "translation": "https://weblate.appinventor.mit.edu/api/translations/appinventor/component-methods/zh_Hant/?format=api",
    "source": "<p>Load a feature collection in <a href=\"https://en.wikipedia.org/wiki/GeoJSON\">GeoJSON</a> format from the given url. On success, the event GotFeatures will be raised with the given url and a list of the features parsed from the GeoJSON as a list of (key, value) pairs. On failure, the LoadError event will be raised with any applicable HTTP response code and error message.</p>",
    "previous_source": "",
    "target": "<p>由指定URL以<a href=\"https://en.wikipedia.org/wiki/GeoJSON\">GeoJSON</a>格式載入特徵集。成功後將觸發「取得特徵」事件,並回傳指定 URL 以及由 GeoJSON 解析成的特徵清單,格式為  (鍵,值)對。如果失敗,將觸發「載入錯誤」事件並回傳對應的HTTP回應代碼和錯誤訊息。</p>",
    "id_hash": -4160307484315289291,
    "content_hash": 3821745833133719366,
    "location": "",
    "context": "LoadFromURLMethodDescriptions",
    "comment": "",
    "flags": "",
    "fuzzy": false,
    "translated": true,
    "position": 386,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 58,
    "priority": 100,
    "id": 272851,
    "web_url": "https://weblate.appinventor.mit.edu/translate/appinventor/component-methods/zh_Hant/?checksum=46439e62a0fcf935",
    "url": "https://weblate.appinventor.mit.edu/api/units/272851/?format=api",
    "source_info": "https://weblate.appinventor.mit.edu/api/sources/11776/?format=api"
}