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

Google Cloud Translate API - Does en_IN not support en yet?

https://translation.googleapis.com/language/translate/v2
-d '{"target":"en_IN","source":"en","format":"html","model":"base","q":"Free Tournament Ticket!","q":"Congratulations!"}'

Upper request return error like below.
{
  "error": {
    "code": 400,
    "message": "Bad language pair: {0}",
    "errors": [
      {
        "message": "Bad language pair: {0}",
        "domain": "global",
        "reason": "badRequest"
      }
    ]
  }
}

But if source is "ko" or "zh_CN", it doesn't return error.
ex) https://translation.googleapis.com/language/translate/v2
-d '{"target":"en_IN","source":"ko","format":"html","model":"base","q":"안녕!","q":"축하!"}'

For now, en_IN is not on the support language list, (https://cloud.google.com/translate/docs/languages?hl=ko).
Should we wait until en_IN is on the supported language list,
to be used in "target" with other supported language?

0 1 168
1 REPLY 1

en is supported but en_IN is not currently listed as a supported language for the Google Cloud Translate API. You may need to consider alternative translation services or work with Google Cloud support to request the addition of "en_IN" to the list of supported languages.