The language support document says it supports en.
语言支持文档说它支持EN。
However, it is possible to call api by specifying "en-US" for target language as follows.
但是,可以通过为目标语言指定“en-US”来调用API,如下所示。
curl -X POST -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" -H "Content-Type: application/json; charset=utf-8" -H "x-goog-user-project: <project id>" -d '{"contents": ["ふわっとオム焼きそば"], "sourceLanguageCode": "ja", "targetLanguageCode": "en-US"}' "https://translation.googleapis.com/v3/projects/<project id>:translateText"
Is the return value en or en-US?
Is the result the same whether en or en-us is specified?
The same can be said for KO and KO-KR.
返回值是EN还是EN-US?无论指定en还是en-us,结果是否相同?KO和KO-KR也是如此。
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!