Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If the language is not recognized by the gcloud translator API, you can try the following steps:

  1. Verify the language code: Make sure that the language code you have provided is correct. You can check the list of supported languages on the gcloud translator API documentation page.

  2. Use a different language code: If you have checked and the language code is correct, try using a different language code. For example, if the language code for Italian (Switzerland) is not recognized, try using the language code for Italian (Italy).

  3. Use the "detect language" feature: Instead of specifying the source language, you can use the "detect language" feature in the API. This will automatically detect the language of the text and translate it into the target language.

  4. Contact Google support: If none of the above steps works, you can contact Google support for assistance. They can help you troubleshoot the issue and provide a solution.