Skip to content

Commit

Permalink
Resolved issues with PR presented at review.
Browse files Browse the repository at this point in the history
  • Loading branch information
DE-dylan-lauzon committed Jan 7, 2025
1 parent 92d2ead commit c9000b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/CrowdinApiClient/Api/TranslationMemoryApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function checkImportStatus(int $translationMemoryId, string $importId): ?
* [string] $params[expressions]
* @return TranslationMemory
*/
public function concordanceSearchTM(int $projectId, array $params = []): ?TranslationMemory
public function concordanceSearch(int $projectId, array $params = []): ?TmConcordanceResultResource
{
$path = sprintf('projects/%d/tms/concordance', $projectId);
return $this->_post($path, TranslationMemory::class, $params);
Expand Down
6 changes: 3 additions & 3 deletions tests/CrowdinApiClient/Api/TranslationMemoryApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function testConcordanceSearch()
{
$params = [
'sourceLanguageId' => 'en',
'targetLanguageId' => 'ru',
'targetLanguageId' => 'uk',
'autoSubstitution' => true,
'minRelevant' => 50,
'expressions' => ['Welcome!']
Expand Down Expand Up @@ -344,7 +344,7 @@ public function testConcordanceSearch()
}'
]);

$export = $this->crowdin->translationMemory->concordanceSearchTM(4, $params);
$this->assertInstanceOf(TranslationMemory::class, $export);
$export = $this->crowdin->translationMemory->concordanceSearch(4, $params);
$this->assertInstanceOf(TmConcordanceResultResource::class, $export);
}
}

0 comments on commit c9000b4

Please sign in to comment.