How To Use 
Register an account

Try For Free Now

Dark

Light

Announcement: End of support for old file type in File Translation (08/24)

Announcemnet: System Maintenance (Update: September 17)

Announcement: End of support for old file type in File Translation (08/24)

LANGUAGES
Languages
Get languages supported by the API.
Endpoint
Request details
GET
https://translate.classiii.info/api/v1/languages
(*If you want to get the languages list of the engine, please connect the endpoint below.)
https://translate.rozetta-api.io/api/v1/languages/engine/<engine>
Path parameter
Path parameter
Description
engine
Engine name. Valid values are "t4oo", "insource-fast"(Real-time Translation Engine) and "t3mt".
Header
Header
Description
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/languages/engine/t4oo
Response
Key
Description
status
For successfully getting of an entry, this field will be "success". For unsuccessful requests, this field will be "failure".
languages
A list of languages contain language code, language name and language description. Except for zh-CN, zh-TW and zh-HK, language codes use the ISO 639-1 code.
Response Sample
{
  "status": "success",
  "data": {
      "languages": [
          {
              "language": "Afrikaans",
              "abbreviation": "af",
              "description": "Afrikaans"
          },
          {
              "language": "Amharic",
              "abbreviation": "am",
              "description": "Amharic"
          },
          {
              "language": "Arabic",
              "abbreviation": "ar",
              "description": "Arabic"
          },
          ...
      ]
  }
}

api/v1/languages/engine/<engine>
Show the list of languages.
const https = require('https');

const authUtils = require('./utils/auth-utils');

const serverConfig = {
 protocol: 'https:',
 hostname: 'translate.rozetta-api.info',
 port: 443
};
const authConfig = {
 accessKey: 'YOUR_ACCESS_KEY',
 secretKey: 'YOUR_SECRET_KEY',
 nonce: new Date().getTime().toString()
};

const getLanguagesList = (serverConfig, authConfig) => {
 const path = '/api/v1/languages/engine/t4oo';
 const signature = authUtils.generateSignature(
   path,
   authConfig.secretKey,
   authConfig.nonce
 );
 const requestOptions = {
   protocol: serverConfig.protocol,
   host: serverConfig.hostname,
   port: serverConfig.port,
   method: 'GET',
   path,
   headers: {
     accessKey: authConfig.accessKey,
     signature,
     nonce: authConfig.nonce
   }
 };
 
 return new Promise((resolve, reject) => {
   const request = https.request(requestOptions, (response) => {
     response.setEncoding('utf8');
     let data = '';
     response.on('data', (chunk) => {
       data += chunk;
     });
     response.on('end', () => {
       resolve(data);
     });
   });
   request.on('error', (error) => {
     reject(error);
   });
   request.end();
 });
};

const main = async () => {
 try {
   const response = await getLanguagesList(
     serverConfig,
     authConfig,
   );
   console.log('Server response:');
   console.log(response);
 } catch (error) {
   console.error(error);
 }
};

main();
T-3MT engine has language pair restrictions. Please look up the following.
Japanese⇔ English , Chinese(Simplified and Traditional)
English ⇔ Arabic, Bengali , German , Greek, Spanish, Persian, Finnish, French, Hindi, Indonesian, Italian, Korean, Malay, Polish, Portuguese, Russian, Swedish, Thai, Tagalog, Turkish, Vietnamese and Chinese
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.

^