We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a self hosted Weblate and a ModernMT subscription. Some languages get suggestions from ModernMT, others don't.
Works: ar_SA, bg, ca, cs, da, de, et, fi, fr_CA, fr, gl, he, hi, hr, hu, id, it, ja, lt, lv, mk, ms, nb_NO, nl, pl, ro, ru, sk, sl, sv, sw, th, uk, vi
Does not work: el, en_CA, en_GB, es, es_CO, es_MX, fa, ko, pt, pt_BR, sr_Cyrl, tr, zh_Hans, zh_Hant
When I call the API from command line, I get translation.
curl -X POST \ -H "X-HTTP-Method-Override: GET" \ -H "Content-Type: application/json" \ -H "MMT-ApiKey: $MY_API_KEY" \ --data '{"source": "en", "target":"el", "q":["Deploy ACLs"]}' \ --no-progress-meter \ --compressed \ "https://api.modernmt.com/translate" |\ jq
{ "status": 200, "data": [ { "translation": "Ανάπτυξη ACL", "billedCharacters": 11, "characters": 11, "billed": true } ] }
curl -X POST \ -H "X-HTTP-Method-Override: GET" \ -H "Content-Type: application/json" \ -H "MMT-ApiKey: $MY_API_KEY" \ --data '{"source": "en", "target":"sr_Cyrl", "q":["Deploy ACLs"]}' \ --no-progress-meter \ --compressed \ "https://api.modernmt.com/translate" |\ jq
{ "status": 200, "data": [ { "translation": "Распореди АЦЛ-ове", "billedCharacters": 11, "characters": 11, "billed": true } ] }
de
el
All languages should get translation suggestion from ModernMT.
No response
Docker container
4.16.4
The text was updated successfully, but these errors were encountered:
Some are not supported by ModernMT (for example fa). For some Weblate is missing aliases (Chinese variants), I will fix that.
fa
Rest seems to work just fine for me. Do you get any errors in the logs?
Sorry, something went wrong.
5c58c78
Thank you for your report; the issue you have reported has just been fixed.
I found that Persian language code (fa in Weblate) can be replaced by pes based on the language list of ModernMT.
pes
And we need a Portuguese mapping similar to DeepL.
@nijel can you please update the language_map of ModernMT?
language_map = { + "fa": "pes", + "pt": "pt-PT", "sr_Cyrl": "sr", "zh_Hant": "zh-TW", "zh_Hans": "zh-CN", }
machinery: Add more mappings to ModernMT
aa8679e
See #9357
Done, thanks for suggestion.
3a320ba
nijel
No branches or pull requests
Describe the issue
I have a self hosted Weblate and a ModernMT subscription. Some languages get suggestions from ModernMT, others don't.
Works: ar_SA, bg, ca, cs, da, de, et, fi, fr_CA, fr, gl, he, hi, hr, hu, id, it, ja, lt, lv, mk, ms, nb_NO, nl, pl, ro, ru, sk, sl, sv, sw, th, uk, vi
Does not work: el, en_CA, en_GB, es, es_CO, es_MX, fa, ko, pt, pt_BR, sr_Cyrl, tr, zh_Hans, zh_Hant
When I call the API from command line, I get translation.
I already tried
Steps to reproduce the behavior
de
(German). This works fine.el
(Greek). The is no translation suggestion.Expected behavior
All languages should get translation suggestion from ModernMT.
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
4.16.4
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: