Integration of this function is because aliexpress buyers from different countries, my "small seller" sync to the buyer's message, a lot of Spanish, Russian and other small language text, can not understand.
Google is a wall, rarely open, domestic translation, basically do not provide APIs.
I choose Bing Translator, because:
1. Its level of translation is really no worse than Google.
2, can be accessed.
3, can be used for free (my dosage is not large).
To use Bing Translator you must:
1, register as a user of Microsoft Azure Marketplace
https://datamarket.azure.com/home/
Landed successfully, after a pile of confirmation is.
2. Modify your account to be anywhere outside of mainland China.
Https://datamarket.azure.com/account
Because the service does not support mainland China.
3, subscribe to the Microsoft Translator API
Https://datamarket.azure.com/dataset/bing/microsofttranslator
Free users can use 2 million characters a month, a messy mess, 2 million characters enough.
4, register the application:
Https://datamarket.azure.com/developer/applications
Client ID, which is the customer ID
The client key is Secret Code
REDIRECT URI random fill
I have compiled a set of APIs, source code:
Https://github.com/gruan01/Bing-Translate
Including:
Language detection: Detect
Get language Support list: Getlanguagesforspeak/getlanguagesfortranslate
Voice: Speak
Basic translation: Translate
Other uses, so there is no integration, if necessary, you can refer to:
Https://msdn.microsoft.com/en-us/library/ff512419.aspx
The specific use of this set of APIs can be consulted:
Https://github.com/gruan01/Bing-Translate/blob/master/AsNum.BingTranslate.Api.Test/AuthTest.cs
All API methods are packaged once in Unity's policy injection (policyinjection) to achieve automatic authentication, except that the place is a bit out of the way, and the rest is simple.
----------------
Finish
Integrate Bing translator into your own system