I am happy to announce the creation of an idiomatic Scala library named fluent-translator for working with Microsoft, Google etc. language translation services. This Scala library aims to provide an universal fancy DSL for working with all popular language translators around. And do it in a reactive non-blocking way. Currently Microsoft Translator and Google Translate services are supported.
I'll put few sexy usage examples below:
I'll put few sexy usage examples below:
Microsoft give me a translation of "Comment vas-tu?" to "en" as future //Future[String]
Microsoft give me many translations of "Doing well by doing good" from "en" to "ru" as future //Future[GetTranslationsResponse]
Microsoft speak "I'm doing well enough now" in "en" withAudioContentType `audio/mp3` as future //Future[SpeakResponse]
Google give me a translation of "Comment vas-tu?" to "en" as future //Future[String]
Google give me a translation of "What a lovely weather today!" from "en" to "fr" withContentType `text/html` as future //Future[String]
You are welcome to use/contribute it on GitHub. And I'll be glad to hear your suggestions as well.