Units API

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

GET /api/units/273275/?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": "By providing a target language to translate to (for instance, ''es'' for Spanish, ''en'' for English, or ''ru'' for Russian), and a word or sentence to translate, this method will request a translation to the Yandex.Translate service.Once the text is translated by the external service, the event GotTranslation will be executed.Note: Yandex.Translate will attempt to detect the source language. You can also specify prepending it to the language translation. I.e., es-ru will specify Spanish to Russian translation.",
    "previous_source": "",
    "target": "指定要翻譯的目標語言(例如,西班牙語為\"es\",英語為\"en\"或俄語為\"ru\")以及要翻譯的單詞或句子,本方法將對 Yandex 請求一次翻譯服務。一旦外部服務翻譯完成之後,將觸發「取得翻譯」事件。注意:本元件的翻譯方法會偵測來源文字的語言,您也可以在翻譯之前先行指定。例如,es-ru 會把西班牙語翻譯為俄語。",
    "id_hash": -4485996998285152589,
    "content_hash": -6178476411449348379,
    "location": "",
    "context": "YandexTranslate__RequestTranslationMethodDescriptions",
    "comment": "",
    "flags": "",
    "fuzzy": false,
    "translated": true,
    "position": 810,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 77,
    "priority": 100,
    "id": 273275,
    "web_url": "https://weblate.appinventor.mit.edu/translate/appinventor/component-methods/zh_Hant/?checksum=41be897f75beaeb3",
    "url": "https://weblate.appinventor.mit.edu/api/units/273275/?format=api",
    "source_info": "https://weblate.appinventor.mit.edu/api/sources/12200/?format=api"
}