I am trying to use the google translate API in an an andriod app. Unfortunately I can not find a reasonable way to do this as google cloud java client does not currently support andriod!
What is the preferred way to do this?
The Google Translate API is not free. Its pricing is based off monthly usage in terms of millions of characters. It costs $20 per 1 million characters for translation or language detection. Price is per character sent to the API for processing, including whitespace characters.
You can translate text, handwriting, photos, and speech in over 100 languages with the Google Translate app. You can also use Translate on the web.
Please see this link
How it works?
It takes three parameters, the text which will be translated, the source language and the target language. It performs the translation in background and returns a string with the result
Features
َAn Example:
GoogleTranslate googleTranslate = new GoogleTranslate();
// Perform the translation by invoking the execute method, but first save the result in a String.
// The second parameter is the source language, the third is the terget language
String result = googleTranslate.execute("the text to be translated", "en", "de").get();
UPDATE:
Also checkout this documentation and in github.
Hope it will be help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With