Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Translate API error with using Glossaries

Hello, I've been testing the Google Translate API v3 and importing glossaries for translation. When I create a glossary and translate using the following languages

 

 

"languageCodes": [
      "ja",
      "en",
      "ta",
      "ne",
      "si",
      "mn",
      "km",
      "uz",
      "ur",
      "ms",
      "lo",
      "ky"
    ]

 

 

 I encounter this error: "Unsupported language pair.; Failed to initialize a glossary." Are there any languages that are not supported for glossaries?

My translate source language is JA and target language is those languageCodes language

Anyone face the same issue with these language?

0 2 357
2 REPLIES 2

Hi DuncanLin,

Welcome to Google Cloud Community!

All the ISO-639 codes for the languages you listed in your variable languageCodes are supported languages of Cloud Translation.

I recommend having two different variables. 1 for the source language code, and the other for the target language code. You may visit this documentation for a demonstration of how to use Cloud Translation Advanced to translate text to a given target language.

I hope the above information is helpful.

Hello,

Thank you for your engagement regarding this issue. We haven’t heard back from you regarding this issue for sometime now. Hence, I'm going to close this issue which will no longer be monitored. However, if you have any new issues, Please don’t hesitate to create a new issue. We will be happy to assist you on the same.

Regards,
Jai Ade