crowdin / crowdin/crowdin-api-client-go
Add support for organization-level Concordance search
- Dominant language
- Go
- Stars
- 10
- Forks
- 18
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 1
Description
The Crowdin API adds organization-level concordance search endpoints that search across all accessible glossaries and translation memories (the existing concordance endpoints are project-scoped):
- **Concordance search in Glossaries** — `POST /glossaries/concordance` (`api.glossaries.concordance.post`). Request body: `sourceLanguageId` (string, required), `targetLanguageId` (string, required), `expressions` (array of strings, required).
- **Concordance search in TMs** — `POST /tms/concordance` (`api.tms.concordance.post`). Request body: `sourceLanguageId` (string, required), `targetLanguageId` (string, required), `autoSubstitution` (boolean, required), `minRelevant` (integer, required), `expressions` (array of strings, required).
On crowdin.com both request forms additionally accept an optional nullable `userId` (integer); this field does not exist in Crowdin Enterprise. Responses reuse the existing concordance result models.
Client libraries should add these organization-level methods alongside the existing project-scoped concordance search.
**References:**
- [Concordance search in Glossaries](https://support.crowdin.com/developer/api/v2/#operation/api.glossaries.concordance.post)
- [Concordance search in TMs](https://support.crowdin.com/developer/api/v2/#operation/api.tms.concordance.post)
- Crowdin Enterprise: [Concordance search in Glossaries](https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.glossaries.concordance.post), [Concordance search in TMs](https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.tms.concordance.post)
Contributor guide
Research direction
Start by locating the existing project-scoped concordance search methods and their request and response models. Add corresponding organization-level methods for `api.glossaries.concordance.post` and `api.tms.concordance.post`, following the listed required fields and the optional nullable `userId` for crowdin.com only. Done when both methods use the existing concordance result models and their behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 70/100