Legacy Knowledge Base
Published Jun. 30, 2025

Auto translation is not working using google cloud translation API

Written By

Pooja Bhambani

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • Steps to reproduce:
    1.
    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. Check the official Google Cloud Translation documentation for more information.
    2. Click Menu( Global Menu), click the Control Panel tab, and navigate to System Settings → Translation → Translator Using Google Cloud.
    3. Check Enabled.
    4. Enter a valid Google Cloud service account key in JSON format.
    5. Click Save.
    6. Navigate to Site Administration > Content & Data > Web Content.
    7. Add a Basic Web Content: 'Test Translation'.
    8. Click Action of 'Test Translation' web content, and click Translate.
    9. Select translate from English to Japanese.
    10. Click Auto Translate.

    Expected Results: Content should successfully translate from English to Japanese。

    Actual Results: An error occurred, and the page displayed 'There is a problem with the translation service. Please contact your administrator.' An error was reported in the background: "ERROR [http-nio-8080-exec-5][AutoTranslateServlet: 94] null

Environment

  • Liferay DXP 7.4
  • 2023.Q3.0
  • 2023.Q3.1

Resolution

  • The observed behavior is a known Liferay DXP bug which has been addressed in 2023.Q3.1.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base