Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate a single String to various different languages #20

Open
durgapraveen opened this issue Jun 10, 2011 · 1 comment
Open

Translate a single String to various different languages #20

durgapraveen opened this issue Jun 10, 2011 · 1 comment

Comments

@durgapraveen
Copy link

can we get the different languages from a same string in a single method by using string array?

@boatmeme
Copy link
Owner

Hello, thanks for the request.

The short answer is that the Microsoft Translator v2 TranslateArray service does not permit either multiple origin languages or multiple target languages for each text in the array. All texts are assumed be of the same origin language and may only be translated to one target language.

While it would be possible to provide a convenience method to perform such translations (and searching for efficiencies by bundling same origin / target languages), behind the scenes the API would be making multiple calls to the service and, in essence, just providing a batching abstraction for a serial process.

It would be possible for you to do the same thing with the API today, only managing that process in your own application.

Please see the discussion at #5

I'll leave this as an open issue as I may bake this behavior into the API in a future release, but it is unlikely to get done for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants