Skip to content

Conversation

@PrakharJain1509
Copy link
Contributor

Description

Add support for the tmApprovedSuggestionsOnly parameter in the Create Project API endpoints. This parameter determines whether to use only approved suggestions from translation memory during project operations.

Changes

  • Added tmApprovedSuggestionsOnly parameter to add_file_based_project() method
  • Added tmApprovedSuggestionsOnly parameter to add_strings_based_project() method
  • Updated tests to cover the new parameter in both project creation methods

API Reference

https://developer.crowdin.com/api/v2/#operation/api.projects.post

Testing

@PrakharJain1509 PrakharJain1509 changed the title Added tmApprovedSuggestionsOnly parameter support to Create Project API feat: Added tmApprovedSuggestionsOnly parameter support to Create Project API Oct 28, 2025
@PrakharJain1509
Copy link
Contributor Author

@andrii-bodnar Please have a look into this. let me know if anything is required.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.35%. Comparing base (96536e1) to head (c6557c1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #220   +/-   ##
=======================================
  Coverage   99.35%   99.35%           
=======================================
  Files         178      178           
  Lines        8216     8216           
  Branches      185      185           
=======================================
  Hits         8162     8162           
  Misses         39       39           
  Partials       15       15           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@andrii-bodnar andrii-bodnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PrakharJain1509 thank you!

@andrii-bodnar andrii-bodnar merged commit b6d9323 into crowdin:main Oct 28, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for tmApprovedSuggestionsOnly parameter in Create Project API

3 participants