3

I have a found a free API to get some data I need for my app. The thing is the values that I get are in English.

I wanted to know if there is some way to translate this strings in my language before showing them to the users.

The Impaler
  • 45,731
  • 9
  • 39
  • 76
coroutineDispatcher
  • 7,718
  • 6
  • 30
  • 58
  • You can try Google or Microsoft's translate API https://stackoverflow.com/a/22829786/1536286 – Mete Apr 27 '18 at 20:20

1 Answers1

0

You can translate text but it will require another API call. Not only that, but you will have to create an appropriate request object and parse a response object from your chosen API.

You have various API providers to choose from, the top Google hits being:

  1. Google: https://cloud.google.com/translate/
  2. Yandex: https://tech.yandex.com/translate/

But beware! Machine translation is patchy at best. The likelihood of getting odd sounding or outright wrong results, particularly for anything other than simple text, is very high.

slowbug
  • 26
  • 3