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

Google Cloud Translate API only show specific languages

Hope I'm in the right place. Tried searching for the answer, but I don't think I've found it yet.

We have the Google Cloud Translate API installed on our site, but we don't want the entire list of languages to show, just French (Canada). How can I accomplish this?

0 1 200
1 REPLY 1

Hi @Bofthepeople,

Welcome to Google Cloud Community!

The Google Cloud Translate API itself doesn't offer a way to filter the list of supported languages directly. The API returns all supported languages when you request a list. 

If you only ever need to translate to French (Canada), you don't need to fetch the language list at all. Just specify fr-CA directly in your translation requests. This is the most efficient approach if you're only translating to that single language. You may refer to this documentation for more information.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

Top Labels in this Space
Top Solution Authors