Units API.

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

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

{
    "translation": "https://l10n.opensuse.org/api/translations/packages-i18n/perl-master/ja/?format=api",
    "source": [
        "Parse a string colored with ANSI escape sequences into a structure suitable for reformatting (into HTML, for example).\n\nThe output of terminal commands can be marked up with colors and formatting that in some instances you'd like to preserve.\n\nThis module is essentially the inverse of Term::ANSIColor. The array refs returned from parse can be passed back in to 'Term::ANSIColor::colored'. The strings may not match exactly due to different ways the attributes can be specified, but the end result should be colored the same.\n\nThis is a '::Tiny' module... it attempts to be correct for most cases with a small amount of code. It may not be 100% correct, especially in complex cases. It only handles the 'm' escape sequence ('\\033[0m') which produces colors and simple attributes (bold, underline) (like what can be produced with Term::ANSIColor). Other escape sequences are removed by default but you can disable this by passing 'remove_escapes => 0' to the constructor.\n\nIf you do find bugs please submit tickets (with patches, if possible)."
    ],
    "previous_source": "",
    "target": [
        "ANSIエスケープシーケンスで色付けされた文字列を、再フォーマット(例えばHTMLなど)に適した構造にパースします。\n\nターミナルコマンドの出力は、場合によっては保存したい色や書式でマークアップすることができます。\n\nこのモジュールは本質的に、Term::ANSIColorの逆です。parseから返された配列参照は'Term::ANSIColor::colored'に返すことができます。属性の指定方法が異なるため、文字列が正確に一致しない場合がありますが、最終的な結果は同じ色にする必要があります。\n\nこれは '::Tiny' モジュールです。ほとんどの場合、少量のコードで正しいことを試みます。特に複雑な場合は、100%正しくない可能性があります。これは、色と単純な属性(ボールド、アンダーライン)(Term::ANSIColorで生成できるようなもの)を生成するm'エスケープシーケンス('\\033[0m])のみを処理します。他のエスケープシーケンスはデフォルトで削除されますが、コンストラクタに 'remove_escapes=>0' を渡すことで無効にすることができます。\n\nバグが見つかった場合は、チケット(可能であればパッチ付き)を提出してください。"
    ],
    "id_hash": 4268352158305709768,
    "content_hash": 4268352158305709768,
    "location": "",
    "context": "",
    "note": "tumbleweed/perl-Parse-ANSIColor-Tiny/description",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 2682,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 168,
    "source_unit": "https://l10n.opensuse.org/api/units/13182526/?format=api",
    "priority": 100,
    "id": 13184000,
    "web_url": "https://l10n.opensuse.org/translate/packages-i18n/perl-master/ja/?checksum=bb3c3bac5c156ec8",
    "url": "https://l10n.opensuse.org/api/units/13184000/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2022-02-23T16:53:45.148732Z"
}