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

feat(api): Added support for ConcordanceSearch of TMs - partial completion of #122 #202

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DE-dylan-lauzon
Copy link
Contributor

Added support for ConcordanceSearch endpoint of TMs - partial completion of issue #122

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.

@DE-dylan-lauzon thanks for the contribution!

src/CrowdinApiClient/Api/TranslationMemoryApi.php Outdated Show resolved Hide resolved
* [string] $params[expressions]
* @return TranslationMemory
*/
public function concordanceSearchTM(int $projectId, array $params = []): ?TranslationMemory
Copy link
Member

Choose a reason for hiding this comment

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

Wrong return type. It should be Array of objects (TmConcordanceResultResource)

tests/CrowdinApiClient/Api/TranslationMemoryApiTest.php Outdated Show resolved Hide resolved
@DE-dylan-lauzon
Copy link
Contributor Author

DE-dylan-lauzon commented Dec 23, 2024 via email

@DE-dylan-lauzon
Copy link
Contributor Author

DE-dylan-lauzon commented Jan 7, 2025

I'm not seeing TmConcordanceResultResource as an available type in the project. Does that still have to be implemented?

This is what I get from the call when running against a real project:

image

@andrii-bodnar
Copy link
Member

@DE-dylan-lauzon the TmConcordanceResultResource class should be implemented.

@andrii-bodnar andrii-bodnar marked this pull request as draft January 16, 2025 07:57
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 this pull request may close these issues.

2 participants