The Transliteration API is a REST API used to transliterate the content from English to Indic languages and vice-versa. The solution is an automated solution that converts the content in real-time. It is easy to integrate into your applications and display content in the 11 most popular Indian languages
The Transliteration API will use the REV-APP-ID and REV-API-KEY to authenticate requests. Your credentials carry many privileges, so be sure to keep them secure.
Pass valid login credentials:
REV-APP-ID
REV-API-KEY
Select Source language & Target language
Post Source Content
Validate user credentials & load default account settings
Return content in Target language
URL Elements | Sample URL |
---|---|
https://(hostname) | https://revapi.reverieinc.com/ |
The format of the data to be posted: application/json
A unique key/token provided by Reverie to identify the user using the Localization API.
The unique account ID to identify the user and the default account settings.
The parameter to identify the API : transliteration
or
, hi
, bn
or
, hi
, bn
data: "Singh Sahab aap Kahan the."
cnt_lang = "hi"
.src_lang
.isBulk
= true
and will not search in the Exception DB.noOfSuggestions
= 1, means the API will return only one transliteration suggestion for the input string.noOfSuggestions = 2
Source Content | Target Content |
---|---|
Rama | 1. रामा |
2. रमा |
abbreviate
= true
enableLookup
= true
.nmtMask
= true
, it is mandatory the src_lang
= en
(English).Source String | Target String |
---|---|
2020.04 | २०२०.०४ |
Source String | Target String |
---|---|
505 | पांच सौ पांच |
sector V
in English, the transliteration would be सेक्टर 5
in Hindi.Block II
will be transliterated as ब्लॉक 2
.ignoreTaggedEntities
= true
and will transliterate the email ID and URL into the target language script.ignoreTaggedEntities = false
Source String | Target String |
---|---|
Check product details in www.reverieinc.com | चेक प्रोडक्ट डिटेल्स इन www.reverieinc.com |
False
.15th Main
in English, the transliteration would be 15 मेन
in Hindi.False
.SMS
as an input, then the result would be एसएमएस
.api_status
= 2 for all the successful transactions.The Transliteration API raises exceptions for many reasons, such as failed conversions, invalid parameters, authentication errors, and network unavailability. It will provide more specific machine-readable messages with an error response so that users can react to errors more effectively.
Refer to: API Messages section to know the error code and corresponding messages.
Status Code | Status Type | Message | Description |
---|---|---|---|
200 | Success/OK | - | Successfully executed the request. |
400 | Bad Request | Message depending on the missing parameter | Incorrect request format or data posted incorrectly. |
403 | Forbidden | Invalid REV-API-KEY or REV-APP-ID | Entered invalid credentials. |
403 | Forbidden | usage exhausted | The provided credits or character limit is exhausted. |
403 | Forbidden | API key expired | The API key provided to a user is expired. |
403 | Forbidden | unauthorized to use this src/tgt language | Invalid language code passed or user cannot use the defined language code. |
403 | Forbidden | unauthorized to use this API | The REV-APPNAME entered is invalid, or the user is not authorized to use it. |
500 | Internal Server Error | Internal Server Error | An error occurred with the API. |
The Transliteration API is a REST API used to transliterate the content from English to Indic languages and vice-versa. The solution is an automated solution that converts the content in real-time. It is easy to integrate into your applications and display content in the 11 most popular Indian languages
The Transliteration API will use the REV-APP-ID and REV-API-KEY to authenticate requests. Your credentials carry many privileges, so be sure to keep them secure.
Pass valid login credentials:
REV-APP-ID
REV-API-KEY
Select Source language & Target language
Post Source Content
Validate user credentials & load default account settings
Return content in Target language
URL Elements | Sample URL |
---|---|
https://(hostname) | https://revapi.reverieinc.com/ |
The format of the data to be posted: application/json
A unique key/token provided by Reverie to identify the user using the Localization API.
The unique account ID to identify the user and the default account settings.
The parameter to identify the API : transliteration
or
, hi
, bn
or
, hi
, bn
data: "Singh Sahab aap Kahan the."
cnt_lang = "hi"
.src_lang
.isBulk
= true
and will not search in the Exception DB.noOfSuggestions
= 1, means the API will return only one transliteration suggestion for the input string.noOfSuggestions = 2
Source Content | Target Content |
---|---|
Rama | 1. रामा |
2. रमा |
abbreviate
= true
enableLookup
= true
.nmtMask
= true
, it is mandatory the src_lang
= en
(English).Source String | Target String |
---|---|
2020.04 | २०२०.०४ |
Source String | Target String |
---|---|
505 | पांच सौ पांच |
sector V
in English, the transliteration would be सेक्टर 5
in Hindi.Block II
will be transliterated as ब्लॉक 2
.ignoreTaggedEntities
= true
and will transliterate the email ID and URL into the target language script.ignoreTaggedEntities = false
Source String | Target String |
---|---|
Check product details in www.reverieinc.com | चेक प्रोडक्ट डिटेल्स इन www.reverieinc.com |
False
.15th Main
in English, the transliteration would be 15 मेन
in Hindi.False
.SMS
as an input, then the result would be एसएमएस
.api_status
= 2 for all the successful transactions.The Transliteration API raises exceptions for many reasons, such as failed conversions, invalid parameters, authentication errors, and network unavailability. It will provide more specific machine-readable messages with an error response so that users can react to errors more effectively.
Refer to: API Messages section to know the error code and corresponding messages.
Status Code | Status Type | Message | Description |
---|---|---|---|
200 | Success/OK | - | Successfully executed the request. |
400 | Bad Request | Message depending on the missing parameter | Incorrect request format or data posted incorrectly. |
403 | Forbidden | Invalid REV-API-KEY or REV-APP-ID | Entered invalid credentials. |
403 | Forbidden | usage exhausted | The provided credits or character limit is exhausted. |
403 | Forbidden | API key expired | The API key provided to a user is expired. |
403 | Forbidden | unauthorized to use this src/tgt language | Invalid language code passed or user cannot use the defined language code. |
403 | Forbidden | unauthorized to use this API | The REV-APPNAME entered is invalid, or the user is not authorized to use it. |
500 | Internal Server Error | Internal Server Error | An error occurred with the API. |