Describe the bug
The crowdin pre-translate CLI command does not work when used with --method=ai on a strings-based project.
The CLI throws an error that the aiPromptId is missing, even though the --ai-prompt= flag was passed.
To Reproduce
Steps to reproduce:
Have a strings-based project
Configure AI pre-translation for the project
Use crowdin pre-translate
Observe error message
Example of the error:
crowdin pre-translate -l el --method=ai --ai-prompt=72007 --branch=main
✔️ Fetching project info
❌ Pre-translation is running...
❌ Failed to pre-translate the project. Please contact our support team for help
❌ Wrong parameters:
<key: method, code: isEmpty, message: Any of [aiPromptId] must be set. Value is required and can't be empty.>
Expected behaviorcrowdin pre-translate should work for strings-based projects.
I compared this with the API endpoint POST /projects/{projectId}/pre-translations, and the pre-translation job is correctly triggered via API request.
Environment:
OS: macOS
Version 4.3.0
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug The
crowdin pre-translate
CLI command does not work when used with--method=ai
on a strings-based project.The CLI throws an error that the
aiPromptId
is missing, even though the--ai-prompt=
flag was passed.To Reproduce Steps to reproduce:
crowdin pre-translate
Example of the error:
Expected behavior
crowdin pre-translate
should work for strings-based projects.I compared this with the API endpoint
POST /projects/{projectId}/pre-translations
, and the pre-translation job is correctly triggered via API request.Environment:
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.