Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/652/?format=api
https://weblate.immersivetranslate.com/api/translations/immersive-translate/extension/en/?format=api", "source": [ "字幕翻译说明:\n\n系统会以用户身份发送请求给{service}。请求中:\n- {{from}} 表示原文语言\n- {{to}} 表示目标语言 \n- {{text}} 表示需要翻译的文本内容,多段之间用 {serviceConfig.translationTextSeparator} 分割\n\n高级自定义:如需更精确控制,可使用{{yaml}}格式。此时AI将返回YAML格式结果,每项必须包含{env.imt_sub_trans_field}字段(译文字段名,默认为{env.imt_sub_trans_field})。系统传递给AI的原文字段名为{env.imt_sub_source_field}。\n\n示例输出:\n```\n- id: 1\n {env.imt_sub_source_field}: Source\n {env.imt_sub_trans_field}: 译文\n- id: 2\n {env.imt_sub_source_field}: Source\n {env.imt_sub_trans_field}: 译文\n```" ], "previous_source": "", "target": [ "Subtitle translation instructions:\n\nThe system will send requests to {service} as a user. In the request:\n- {{from}} indicates the source language\n- {{to}} indicates the target language \n- {{text}} indicates the content to be translated, with multiple paragraphs separated by {serviceConfig.translationTextSeparator}\n\nAdvanced customization: For more precise control, you can use the {{yaml}} format. In this case, AI will return results in YAML format, each item must include the {env.imt_sub_trans_field} field (translation field name, default is {env.imt_sub_trans_field}). The original text field name passed to AI by the system is {env.imt_sub_source_field}.\n\nOutput example:\n```\n- id: 1\n {env.imt_sub_source_field}: Source\n {env.imt_sub_trans_field}: Translation\n- id: 2\n {env.imt_sub_source_field}: Source\n {env.imt_sub_trans_field}: Translation\n```" ], "id_hash": 5605426200483893843, "content_hash": 3665032845887224475, "location": "", "context": "description.subtitlePrompt", "note": "", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 614, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 31, "source_unit": "https://weblate.immersivetranslate.com/api/units/652/?format=api", "priority": 100, "id": 652, "web_url": "https://weblate.immersivetranslate.com/translate/immersive-translate/extension/en/?checksum=cdca796e36829253", "url": "https://weblate.immersivetranslate.com/api/units/652/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-06-18T14:56:50.414761Z" }{ "translation": "