Closed bigshans closed 2 years ago
Oh, you are right, thanks! Could you send a PR to add "zh_HANT" to the list of exceptions for Lingva?
Oh, you are right, thanks! Could you send a PR to add "zh_HANT" to the list of exceptions for Lingva?
Sorry, I'm very busy recently. I may not have the free time to solve it.
Sorry, I'm very busy recently. I may not have the free time to solve it.
No problem, I will do it myself later then.
The problem I found when I was using lingva to translate Chinese.
When I use crow translate, I always get the error
Error transferring https://lingva.ml/api/v1/auto/zh-CN/hello - server replied: Bad Request
. So I checked the source code and found that you use google's language code for lingva. But in Chinese, they are different. I'm not sure if there are more differences, so I hope you can review it.For lingva:
"zh": "Chinese", "zh_HANT": "Chinese (Traditional)",
For google: zh-CN: Chinese, zh-TW: ChineseThis is language code for lingva.
https://github.com/TheDavidDelta/lingva-translate/blob/main/utils/languages.json
Thanks!