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...
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"
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.