crowdin / crowdin-cli

A command-line client for the Crowdin API
https://crowdin.github.io/crowdin-cli
MIT License
250 stars 94 forks source link

Failed to pre-translate the project. Languages [zh-CN,zh-HK] are not supported by Mt Engine #856

Closed Wei18 closed 1 month ago

Wei18 commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

  npm install -g @crowdin/cli@3.19.4
  crowdin pre-translate --branch $CROWDIN_BRANCH_NAME --config $CROWDIN_CONFIG_PATH \
    --method mt \
    --engine-id "xxxxxx" \
    --language "zh-CN" \
    --language "zh-HK"
  shell: /usr/bin/bash -e {0}
  env:
    CROWDIN_BRANCH_NAME: SSOT
    CROWDIN_CONFIG_PATH: AppSource/crowdin.yml
[●∙∙∙∙] Fetching project info                             [∙●∙∙∙] Fetching project info                             [∙∙●∙∙] Fetching project info                             [∙∙∙●∙] Fetching project info                             [∙∙∙∙●] Fetching project info                             ✔️  Fetching project info
[●∙∙∙∙] Pre-translation is running...                                     ❌ Pre-translation is running...
❌ Failed to pre-translate the project. Please contact our support team for help
❌ Wrong parameters: 
<key: languageIds, code: notSupportedByMT, message: Languages [zh-CN,zh-HK] are not supported by Mt Engine>

Expected behavior Like last time, the executed job passed.

Environment: image

Screenshots If applicable, add screenshots to help explain your problem.

Additional context The cli version 4.1.1 & 4.2.0 has same issue.

➜  iOS git:(test/wei/l10n) ✗ npx crowdin pre-translate --branch test/wei/l10n --language zh-CN --method mt --engine-id xxxxxx                      [12:52:37]
✔️  Fetching project info     
❌ Pre-translation is running...     
❌ Failed to pre-translate the project. Please contact our support team for help
❌ Wrong parameters: 
<key: languageIds, code: notSupportedByMT, message: Languages [zh-CN] are not supported by Mt Engine>
➜  iOS git:(test/wei/l10n) ✗ npx crowdin pre-translate --branch test/wei/l10n --method mt --engine-id xxxxxx                                       [12:54:00]
✔️  Fetching project info     
❌ Pre-translation is running...     
❌ Failed to pre-translate the project. Please contact our support team for help
❌ Wrong parameters: 
<key: languageIds, code: notSupportedByMT, message: Languages [ja,zh-CN,zh-TW,en,th,zh-HK] are not supported by Mt Engine>
➜  iOS git:(test/wei/l10n) ✗ npx crowdin pre-translate --branch test/wei/l10n -l zh-CN --method mt --engine-id xxxxxx                              [12:54:25]
✔️  Fetching project info     
❌ Pre-translation is running...     
❌ Failed to pre-translate the project. Please contact our support team for help
❌ Wrong parameters: 
<key: languageIds, code: notSupportedByMT, message: Languages [zh-CN] are not supported by Mt Engine>
➜  iOS git:(test/wei/l10n) ✗ npx crowdin pre-translate --branch test/wei/l10n -l en --method mt --engine-id xxxxxx                                 [12:55:14]
✔️  Fetching project info     
❌ Pre-translation is running...     
❌ Failed to pre-translate the project. Please contact our support team for help
❌ Wrong parameters: 
<key: languageIds, code: notSupportedByMT, message: Languages [en] are not supported by Mt Engine>
➜  iOS git:(test/wei/l10n) ✗ npx crowdin language list                                                                                             [12:55:40]
✔️  Fetching project info     
ja Japanese
zh-CN Chinese Simplified
zh-TW Chinese Traditional
en English
th Thai
zh-HK Chinese Traditional, Hong Kong
Wei18 commented 1 month ago
image
andrii-bodnar commented 1 month ago

Hi @Wei18, thanks for reporting this! This issue is more related to the MT Engine you use, not the CLI itself.

andrii-bodnar commented 1 month ago

Please contact the Customer Success team for further investigation.