The Machine Translation API allows you to render text from one language to another helping your site content reach international audiences. When you call this method, Wix sends the content to an external translation service and then returns the translated content.
With the Machine Translation API, you can:
- Translate text from plain text, HTML, or rich content objects
- Bulk translate up to 1,000 units of text
The Machine Translation API should be used alongside the Credit Data API to monitor word credits before and after translation requests.
It's important to note the following before starting to code:
- A Wix user must install the Wix Multilingual app on their site.
- Wix doesn't overwrite the original content source. Make sure to store the returned
translatedContent object separately to use at a later time.
- Only text translation is supported.
- Translation requests are limited to 5,000 characters.
- Translation requests fail if the site has insufficient word credits. Use the Credit Data API to check credit availability.
- Successful translation requests automatically deduct credits from the site's word credit balance.
- Machine translation: The process of using an external service to automatically translate text to other languages. Alternatively, a Wix user can manually translate their content with the Translation Manager.
- Translatable content: Content that can be machine translated with the Machine Translation API. Learn more about translatable and untranslatable content.
- Word credit: A unit of translation capacity. 1 credit equals 1 word. Every site has a word credit balance indicating the number of words available for translation.
- Quota: The total number of word credits allocated to a site, including initial allocation and any additional credits purchased through the Translation Manager. Currently, sites have a quota limit, with the exception of Wix Studio enterprise sites, which have an unlimited quota.