Units API

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

GET /api/units/222133/?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-info/ca/?format=api",
    "source": "<p>A round ''sprite'' that can be placed on a <code>Canvas</code>, where it can react to touches and drags, interact with other sprites (<code>ImageSprite</code>s and other <code>Ball</code>s) and the edge of the Canvas, and move according to its property values.</p><p>For example, to have a <code>Ball</code> move 4 pixels toward the top of a <code>Canvas</code> every 500 milliseconds (half second), you would set the <code>Speed</code> property to 4 [pixels], the <code>Interval</code> property to 500 [milliseconds], the <code>Heading</code> property to 90 [degrees], and the <code>Enabled</code> property to <code>True</code>.</p><p>The difference between a <code>Ball</code> and an <code>ImageSprite</code> is that the latter can get its appearance from an image file, while a <code>Ball</code>''s appearance can be changed only by varying its <code>PaintColor</code> and <code>Radius</code> properties.</p>",
    "previous_source": "",
    "target": "<p>Un component animat en forma de cercle que es pot situar en un <code>Llenç</code>, on pot reaccionar a tocs i arrossegaments, interactuar amb altres components animats (<code>icones animades</code>, i altres <code>boles</code>) i amb la vora del Llenç, i es mou segons indiquen les seves propietats.</p><p>Per exemple, per moure una <code>Bola</code> 4 píxels cap a la part superior d''un <code>Llenç</code> cada 500 mil·lisegons (mig segon), s''hauria d''assignar a la propietat <code>Velocitat</code> el valor 4 [píxels], a la propietat <code>Interval</code> el valor 500 [mil·lisegons], a la propietat <code>Direcció</code> el valor 90 [graus] i a la propietat <code>Habilitat</code> el valor <code>cert</code>.</p><p>La diferència entre una <code>Bola</code> i una <code>Icona animada</code> és que l''aparença de la Icona animada s''obté a partir d''un fitxer d''imatge, mentre que una <code>Bola</code> només pot canviar la seva aparença mitjançant les propietats <code>Color</code> i <code>Radi</code>.</p>",
    "id_hash": 7449823071733847299,
    "content_hash": -6909237758358581611,
    "location": "",
    "context": "BallHelpStringComponentPallette",
    "comment": "",
    "flags": "",
    "fuzzy": false,
    "translated": true,
    "position": 4,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 119,
    "priority": 100,
    "id": 222133,
    "web_url": "https://weblate.appinventor.mit.edu/translate/appinventor/component-info/ca/?checksum=e763169ce6349503",
    "url": "https://weblate.appinventor.mit.edu/api/units/222133/?format=api",
    "source_info": "https://weblate.appinventor.mit.edu/api/sources/10725/?format=api"
}