Automatically Translating Web Content¶
Liferay can integrate with the following service APIs to generate automatic translations of Web Content.
To use this feature, you must first set up the translation service you are using and then enable it in Liferay’s system settings. Once enabled, you can use the service to generate translations for Web Content.
Important
Only one service can be active at a given time. If you enable multiple services, the system picks the first one available.
Enabling for Google Cloud Translation¶
Enabling Google Cloud Translation requires an active account and a Google Cloud project with Cloud Translation API enabled. This project must also have a service account with a JSON account key. See official Google Cloud Translation documentation for more information.
When ready, follow these steps:
Open the Global Menu(
), click the Control Panel tab, and go to System Settings → Translation → Translator Using Google Cloud.
Check Enabled.
Enter a valid Google Cloud service account key in JSON format.
Click Save.
Enabling for Amazon Translate¶
Available 7.4 U9+ and GA13+
Enabling Amazon Translate requires an active Amazon AWS account. See official Amazon Translate documentation for more information.
When ready, follow these steps:
Open the Global Menu(
), click the Control Panel tab, and go to System Settings → Translation → Translator Using AWS.
Check Enabled.
Enter a valid Access Key and Secret Key.
Enter your region. The default value is
us-west-1
.Click Save.
Enabling for Microsoft Translator¶
Available 7.4 U6+ and GA10+
Enabling Microsoft Translator requires an active Microsoft Azure account. See official Microsoft Translator documentation for more information.
When ready, follow these steps:
Open the Global Menu(
), click the Control Panel tab, and go to System Settings → Translation → Translator Using Azure.
Check Enabled.
Enter a valid Subscription Key and Resource Location (region).
Click Save.
Using Automatic Translation¶
Once a translation service is enabled, auto translate buttons are added to the translation interface for Web Content.
Follow these steps to automatically translate all or only individual Web Content fields:
Open the Web Content application in a Site or Asset Library.
Click Actions (
) for the content you want to translate and select Translate.
Click the top left Auto Translate button to translate all Web Content fields into the selected language.
Alternatively, click a field’s individual Auto Translate button (
) to only translate its text.
Click Save as Draft or Publish when finished.