参考ページ
Method: projects.getSupportedLanguages
export GOOGLE_APPLICATION_CREDENTIALS=./***.json
#
curl \
-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
-H "Content-Type: application/json; charset=utf-8" \
https://translation.googleapis.com/v3/projects/project-translation/supportedLanguages
実行結果
{
"languages": [
{
"languageCode": "af",
"supportSource": true,
"supportTarget": true
},
{
"languageCode": "am",
"supportSource": true,
"supportTarget": true
},
{
"languageCode": "ar",
"supportSource": true,
"supportTarget": true
},
(省略)