Skip to content
New issue

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

pre-translate command does not work with AI on strings-based project #865

Closed
aergonaut opened this issue Nov 5, 2024 · 0 comments · Fixed by #867
Closed

pre-translate command does not work with AI on strings-based project #865

aergonaut opened this issue Nov 5, 2024 · 0 comments · Fixed by #867

Comments

@aergonaut
Copy link

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:

  1. Have a strings-based project
  2. Configure AI pre-translation for the project
  3. Use crowdin pre-translate
  4. 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 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:

  • 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.

@yevheniyJ yevheniyJ linked a pull request Nov 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant