About this Cloud Hub Solution:
The IBM Watson Language Translator service uses advanced technology to convert text input in one language into a destination language, leveraging domain-specific models to provide accurate and contextual translations. The service supports translations among numerous languages.
Neural Machine Translation
By default, all language pairs utilize neural machine translation, a cutting-edge technology that employs deep learning to enhance translation speed and accuracy. This approach enables the service to deliver high-quality translations that are more precise and natural-sounding.
Supported Languages
Arabic, Bengali, Bulgarian, Catalan, Chinese (Simplified & Traditional), Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Irish, Italian, Indonesian, Japanese, Korean, Latvian, Lithuanian, Malay, Maltese, Malayalam, Nepali, Norwegian, Polish, Portuguese (Brazil), Romanian, Russian, Sinhala, Slovak, Slovenian, Spanish, Swedish, Tamil, Telugu, Thai, Turkish, Urdu, and Vietnamese.
Protect your privacy
This API will protect your privacy so you can own your data. With Watson Language Translator, opt-out of any data collection.
Sample Code
Below is a sample cURL command translating a famous speech by President Kennedy into Simplified Chinese.
curl --location --request POST 'https://api.apilayer.com/language_translation/translate?target=zh' \--header 'apikey: YOUR API KEY' \--data-raw 'We choose to go to the Moon in this decade and do the other things, not because they are easy, but because they are hard, because that goal will serve to organize and measure the best of our energies and skills, because that challenge is one that we are willing to accept, one we are unwilling to postpone, and one which we intend to win, and the others, too.'
You don't need to specify the source language as it will be automatically detected.
If you need to be specific, you can do so by using source parameter in the query string.
The response will be as follows:
{ "translations": [ { "translation": "我们选择在这十年去月球,做其他事情,不是因为它们容易,而是因为它们很困难,因为这一目标将有助于组织和衡量我们的能量和技能,因为这一挑战是我们愿意接受的,一个我们不愿推迟的挑战,一个我们想要赢得的挑战,另一个是我们想要赢得的,其他人也一样。" } ], "word_count": 78, "character_count": 359, "detected_language": "en", "detected_language_confidence": 0.9999999999990641}