"Discovering Supported Languages" missing "zh-CN", But "Detecting Languages" return "zh-CN"

37 views
Skip to first unread message

sinkcup

unread,
Mar 12, 2018, 10:34:49 PM3/12/18
to Google Cloud Translation API
image

Google Translation API  "Discovering Supported Languages" contains "zh" but missing "zh-CN".

But "Detecting Languages" result is "zh-CN" not "zh".


When user "Detecting Languages" return "zh-CN", then search the name from list, but nothing...it will crash...


Steps to reproduce

curl -H "Authorization: Bearer "$(gcloud auth print-access-token) \
    "https://translation.googleapis.com/language/translate/v2/languages"

curl -X POST \
     -H "Authorization: Bearer "$(gcloud auth print-access-token) \
     -H "Content-Type: application/json; charset=utf-8" \
     --data "{
  'q': '你好世界',
}" "https://translation.googleapis.com/language/translate/v2/detect"

Kenworth (Google Cloud Platform)

unread,
Mar 13, 2018, 1:00:29 PM3/13/18
to Google Cloud Translation API

Hi, a thread like this is off-topic for Google Groups. As it may potentially be a defect on the platform, I highly encourage you to submit a defect report as described in this article so that proper attention and weight will be given to it. We monitor that issue tracker closely.


We look forward to this issue report.


sinkcup

unread,
Mar 14, 2018, 9:00:43 AM3/14/18
to Google Cloud Translation API
OK, thanks. I have submitted it. https://issuetracker.google.com/issues/74607668
Reply all
Reply to author
Forward
0 new messages