Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Issue affecting a 3rd party
View staffing
Description
Customer is using translation API Advance edition to translate but when they use detect language feature, they noticed that the detect language only outputs 1 language instead of multiple languages (i.e. Brief, also, fast, arm)
What you expected to happen:
1. Expected result for detect "brief"
{
"languages": [
{
"languageCode": "en",
"confidence": 0.7647059
},
{
"languageCode": "de",
"confidence": ...
}
]
}
2. Expected result for detect "also"
{
"languages": [
{
"languageCode": "en",
"confidence": 0.9609375
},
{
"languageCode": "de",
"confidence": ...
}
]
}
3. Expected result for detect "arm"
{
"languages": [
{
"languageCode": "en",
"confidence": 0.85271317
},
{
"languageCode": "de",
"confidence": ...
}
]
}
Actual results: 1. Actual result for detect "brief"
{
"languages": [
{
"languageCode": "en",
"confidence": 0.7647059
}
]
}
2. Actual result for detect "also"
{
"languages": [
{
"languageCode": "en",
"confidence": 0.9609375
}
]
}
3. Actual result for detect "arm"
{
"languages": [
{
"languageCode": "en",
"confidence": 0.85271317
}
]
}
Steps to reproduce:
1. curl -X POST -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) -H "Content-Type: application/json; charset=utf-8" -d '{"content":"brief"}'
2. curl -X POST -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) -H "Content-Type: application/json; charset=utf-8" -d '{"content":"also"}'
3. curl -X POST -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) -H "Content-Type: application/json; charset=utf-8" -d '{"content":"arm"}'
Other information (workarounds you have tried, documentation consulted, etc):
Tried other words with multiple meaning for multiple languages and it still output 1 language