Localization is a REST API that quickly translates English content into Indic languages, supporting single or multiple sentences.
<YOUR-APP-ID>
& <YOUR-API-KEY>
and then run the following example in a terminal or your favorite API client.
responseList
, which is an array containing the localized content. Each item includes the inString
, representing the original input text in the source language, and the corresponding outString
, which contains the translated text in the requested target language.
Language | Language Code |
---|---|
Hindi | hi |
English | en |
Assamese | as |
Bengali | bn |
Gujarati | gu |
Kannada | kn |
Konkani | kok |
Malayalam | ml |
Marathi | mr |
Maithili | mai |
Odia | or |
Punjabi | pa |
Tamil | ta |
Telugu | te |
Nepali | ne |
Urdu | ur |
Domain ID (For v3.0) | Domain ID (For v2.0) | Description |
---|---|---|
generic | 0 | Default domain; localizes content regardless of specific domain. |
government | 1 | Trained for accurate localization of government terminologies. |
travel | 2 | Localizes travel industry terminologies accurately. |
ecommerce | 3 | Localizes content for the ecommerce domain. |
infotainment | 4 | Translates content for the media and entertainment domain. |
bfsi | 5 | Accurately translates banking, financial services, and insurance content. |
food | 6 | Translates grocery industry terminologies into target languages. |
education | 7 | Translates content from academic books. |
medical | 8 | Serves the healthcare industry with accurate translations. |
What languages are supported by the Localization API?
Can I customize translations for specific domains?
Does the API handle cultural nuances?
Can I create custom localization for my brand?
How fast is the localization process?
Status Code | Status Type | Status | Description |
---|---|---|---|
2 | Success | LOOKUP_MODERATED | API fetched localization content from the database. |
3 | Success | MT_SUCCESS | Source content translated using Neural Machine Translation (NMT). |
4 | Success | LOOKUP_UNMODERATED | Localized content in database, but verification status is “unmoderated.” |
5 | Success | LOOKUP_INPROGRESS | Localized content in database; content moderation in progress. |
6 | Success | LOOKUP_PARTIAL | API partially localized a segment from LookUp DB. |
10 | Success | T13N_SUCCESS | API fetched content from transliteration. |
-2 | Error | UNLOCALIZED | Requested content is transliterated, not translated. |
-3 | Error | ROSETTA_ERROR | Error occurred while preprocessing the sentence. |
-4 | Error | MT_ERROR | Error occurred during NMT translation. |
-5 | Error | MT_TIME_OUT | Timeout error while fetching response from NMT Engine. |
-6 | Error | LOCMAN_ERROR | Error occurred while processing content in LocMan. |
-7 | Error | SEGMENTATION_API_ERROR | Error while segmenting the sentence. |
403 | Error | unauthorized to use this src/tgt language | Invalid or unauthorized language code provided. |
403 | Error | Invalid REV-API-KEY or REV-APP-ID | Invalid credentials provided. |
403 | Error | usage exhausted | Provided credit limit is exhausted. |
403 | Error | API key expired | API key provided has expired. |
403 | Error | unauthorized to use this API | User is not authorized to use the Localization API. |
403 | Error | Please provide data string | Data is missing. |
403 | Error | Target language is mandatory | Target language (tgt_lang) is missing. |
403 | Error | Source language is mandatory | Source language (src_lang) is missing. |