gpt4 book ai didi

Does Google Cloud Translation API support language like "en-US"?(谷歌云翻译API是否支持像“en-US”这样的语言?)

转载 作者:bug小助手 更新时间:2023-10-24 17:54:44 28 4
gpt4 key购买 nike



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也是如此。


更多回答
优秀答案推荐
更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com