Closed NeverAgain11 closed 3 months ago
@tisfeng
新增支持翻译到巴西葡萄牙语时,用 pt-BR 时请求翻译出现错误.
Bind 翻译的错误是:
bing json parse failed { "errorMessage" : "", "statusCode" : 400 }}
DeepL 的错误是:
Request failed: bad request (400) Invalid Request
能帮忙看看是什么问题么?
ok,明天我看看。
DeepL works on my end
As for Bing, it just doesn't seem to support pt-BR
?
@Jerry23011 Could you try to translate from Chinese text to pt-BR?
@Jerry23011 Could you try to translate from Chinese text to pt-BR?
When targeting pt-BR, DeepL says Invalid target_lang
{
"jsonrpc": "2.0",
"id": 150256000,
"error": {
"code": -32600,
"message": "Invalid Request",
"data": {
"what": "Invalid target_lang."
}
}
}
I'm not familiar with the implementation of DeepL in Easydict, but it seems pt-BR is supported as a target lang in their docs?
The official API of DeepL supports PT-BR language, but the web version of our API does not support it.
I just added DeepL support for regional variant languages, like pt-BR 1cc75611
Note that I just debugged the Bing web API and found that the current code for the Portuguese language is wrong, it's a bit strange, for Portuguese Portuguese it's pt-PT
, for Brazilian Portuguese it's pt
😓
I have fixed it adde77e1 .
The latest changes works on my end
I checked other services and added support for Baidu, Google and Niu. The Google translation has the same effect when using pt, pt-PT and pt-BR.
The Google translation has the same effect when using pt, pt-PT and pt-BR.
It seems Google Translate doesn't support pt-BR, and the web version doesn't have the Brazilian Portuguese language option either.
569