-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat: add addToTm parameter support for Upload Translation API #185
feat: add addToTm parameter support for Upload Translation API #185
Conversation
The support for addToTm parameter has been added to upload_translation method: - Defined addToTm in UploadTranslationRequest type - Added addToTm as optional boolean parameter in upload_translation - Added comprehensive test cases covering all possible scenarios Default value (true) is handled by the API as specified in: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.postOnLanguage Closes crowdin#183
@andrii-bodnar Fixed indentation issues from #185 that were causing workflow failures. All style checks should pass now. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #185 +/- ##
==========================================
+ Coverage 99.20% 99.21% +0.01%
==========================================
Files 166 166
Lines 6497 6505 +8
Branches 149 149
==========================================
+ Hits 6445 6453 +8
Misses 36 36
Partials 16 16 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@imprvhub thanks for your contribution!
I just left a few comments on the matter.
feat: add addToTm parameter support for Upload Translation API (crowdin#185)
The support for addToTm parameter has been added to upload_translation method:
Default value (true) is handled by the API as specified in: https://developer.crowdin.com/api/v2/#operation/api.projects.translations.postOnLanguage
Closes #183