refactor: use Crowdin API for translation checks#4
Merged
nvdaes merged 1 commit intonvdaes:l10nfrom Apr 26, 2026
Merged
Conversation
…lection - Replace langid and polib dependencies with direct Crowdin API calls. - Implement smart mapping between local filenames and Crowdin sources. - Add support for comparing .md and .xliff documentation files. - Prioritize XLIFF format and select the file with the highest translation ratio. - Standardize script output for poScore, mdScore, and translationRatio.
Owner
|
Thanks @abdel792 . I'll merge this, and later I'll made changes like running pre-commit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR refactors the
checkTranslation.pyscript to officially utilize the Crowdin API for translation validation. By fetching data directly from the Crowdin API, the script now provides the real-time translation status for all addon components.Changes
Crowdin API Integration
langidandpolibno longer necessary..porequest to the.potsource template on the API)..md,.po, and.xliff..mdand.xlifffiles. It automatically selects the one with the highest translation ratio, with a built-in priority for the XLIFF format.Technical Details
langidandpolibas the API provides all necessary metadata and scoring.poScore,mdScore, andtranslationRatioto ensure seamless integration with existing CI/CD and PowerShell workflows.Checklist
.mdand.xlifffiles (priority to XLIFF).