Skip to content

Latest commit

 

History

History
158 lines (149 loc) · 4.57 KB

quotation.md

File metadata and controls

158 lines (149 loc) · 4.57 KB

Quotation

Show - make a quotation

GET https://platform.api.onesky.io/1/projects/:project_id/quotations

Authentication

Required. Details described here

Parameters

Name Required? Default Sample Description
files required ['string.po'] Files to be translated in the order
to_locale required zh-TW Target language to tranlate. Please refer to GET locales
is_including_not_translated optional true false Include not translated phrases to translate
is_including_not_approved optional true false Include not approved phrases to translate
is_including_outdated optional true false Include outdated phrases to translate that is updated since last order.
specialization optional general game Specify specialization in order to translate phrases in a specific area.
Currently supported:
  • general - genreal translations
  • game - translations of game

Response

status 200 OK
{
    "meta": {
        "status": 200
    },
    "data": {
        "files": [
            {
                "name": "string.po"
            },
            {
                "name": "string2.po"
            },
            ...
        ],
        "from_language": {
            "code": "en-US",
            "english_name": "English (United States)",
            "local_name": "English (United States)",
            "locale": "en",
            "region" : "US"
        },
        "to_language": {
            "code": "ja-JP",
            "english_name": "Japanese",
            "local_name": "日本語",
            "locale": "ja",
            "region" : "JP"
        },
        "is_including_not_translated": true,
        "is_including_not_approved": true,
        "is_including_outdated": false,
        "specialization": "general",
        "translation_only": {
            "string_count": 2013,
            "word_count": 639,
            "per_word_cost": "0.01",
            "total_cost": "20.13",
            "will_complete_at": "2013-01-01T23:00:00+0000",
            "will_complete_at_timestamp": 13453435132,
            "seconds_to_complete": 1234567,
            "preferred_translator" : {
                "will_complete_at": "2013-01-05T23:00:00+0000",
                "will_complete_at_timestamp": 1357426800,
                "seconds_to_complete": 2342342
            }
        },
        "translation_and_review": {
            "string_count": 2013,
            "word_count": 639,
            "per_word_cost": "0.02",
            "total_cost": "40.26",
            "will_complete_at": "2013-01-02T23:00:00+0000",
            "will_complete_at_timestamp": 1357167600,
            "seconds_to_complete": 2345678,
            "preferred_translator" : {
                "will_complete_at": "2013-01-06T23:00:00+0000",
                "will_complete_at_timestamp": 1357513200,
                "seconds_to_complete": 3456789
            }
        },
        "review_only": {
            "string_count": 2013,
            "word_count": 639,
            "per_word_cost": "0.005",
            "total_cost": "10.07",
            "will_complete_at": "2013-01-01T23:00:00+0000",
            "will_complete_at_timestamp": 13453435132,
            "seconds_to_complete": 1234567,
            "preferred_translator" : {
                "will_complete_at": "2013-01-05T23:00:00+0000",
                "will_complete_at_timestamp": 1357426800,
                "seconds_to_complete": 2342342
            }
        }
    }
}

Back to top