How To Use 
Register an account

Try For Free Now

Dark

Light

Announcement: Change of trial usage for new individual user (6/21)

Announcemnet: System Maintenance (Update: July 19)

Announcement: Change of trial usage for new individual user (6/21)

USER DICTIONARY
Get all user dictionary entries
Get all user dictionary entries owned by a user.
User dictionary is only applied to T-4OO engine, Real-time. T-3MT engine.
Endpoint
Request details
GET
https://translate.rozetta-api.io/api/v1/dictionary
Header
Header
Description
Content-Type
application/json
accessKey, nonce, signature
Please refer to the authentication section.
Request Sample
curl -H "nonce: Your Nonce" -H "accessKey: Your Access Key" -H "signature: Your Signature" https://translate.rozetta-api.info/api/v1/dictionary
Response
Key
Description
status
For successfully adding of an entry, this field will be "success". For unsuccessful requests, this field will be "failure".
entries
User dictionary entries owned by the user.
id
Entry ID
fromLang
The language of the original text. Except for languages such as zh-CN and zh-TW, please use the ISO 639-1 code. To get the list of supported languages, please refer to Languages section.
fromText
The text to map from.
toLang
The language of the translated text. Except for languages such as zh-CN and zh-TW, please use the ISO 639-1 code. To get the list of supported languages, please refer to Languages section.
toText
The text to map to.
Response Sample
{
  "status": "success",
  "data": {
    "entries": [
      {
        "id": 10,
        "fromLang": "en",
        "fromText": "square",
        "toLang": "ja",
        "toText": "広場"
      },
      {
        "id": 11,
        "fromLang": "ja",
        "fromText": "会社",
        "toLang": "en",
        "toText": "company"
      }
    ]
  }
}
Limitation
Limitation
Only 3 or less words of User Dictionary can be applied in one translation request when using real-time translation engine. For example: "猫"→"Kitty" "犬"→"Marutaro" "ウサギ"→"Peter" "クマ"→"Teddy" When send request below at once ["これはです。", それはです。", ウサギクマも動物です。"] The result will be like: ["This is Kitty.", "It is Marutaro.", "Both Peter and bears are animals."] ※For there are 3 user dictionaries:「猫」、「犬」、「ウサギ」are applied,「クマ」 will not be applied.

api/v1/dictionary
Get all user dictionary entries owned by a user.
func GetUserDictionaryEntries(basePath string) {
  apiURL := "/api/v1/dictionary"

  client := &http.Client{}
  req, _ := http.NewRequest("GET", GetFullUrl(basePath, apiURL), nil)
  res, err := client.Do(req)

  if err != nil {
      fmt.Printf("The HTTP request failed with error %s\n", err)
  } else {
      data, _ := ioutil.ReadAll(res.Body)
      fmt.Println(string(data))
  }
}
About the authentication, please refer to the authentication section.
About full sample code of each languages, please refer tohere
©️ 2019 Rozetta API  ・  Powered by Rozetta

Rozetta Corp.

^