Skip to content

Conversation

@seanbudd
Copy link
Member

@seanbudd seanbudd commented Jan 9, 2026

Link to issue number:

None

Summary of the issue:

Adding new languages to NVDA from Crowdin causes pre-commit to fail, as it commits large xliff files.
Failed job: https://github.com/nvaccess/nvda/actions/runs/20842477976/job/59879416174

Description of user facing changes:

None

Description of developer facing changes:

We can add new languages to NVDA via Crowdin

Description of development approach:

update pre-commit

Testing strategy:

Tested trying to commit a large xliff file locally

Known issues with pull request:

n/a

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@seanbudd seanbudd added this to the 2026.1 milestone Jan 9, 2026
Copilot AI review requested due to automatic review settings January 9, 2026 05:52
@seanbudd seanbudd requested a review from a team as a code owner January 9, 2026 05:52
@seanbudd seanbudd requested a review from SaschaCowley January 9, 2026 05:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a pre-commit configuration issue that prevents adding new languages to NVDA from Crowdin. The check-added-large-files hook was blocking commits of large xliff translation files.

  • Updates pre-commit config to exclude xliff files from the large file size check

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- id: check-added-large-files
# POFiles and TTF fonts can't be made smaller
exclude_types: ["pofile", "ttf"]
exclude_types: ["pofile", "ttf", ".xliff"]
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The exclude_types syntax is incorrect. The 'identify' library used by pre-commit recognizes file types without the leading dot. According to the pattern used for 'pofile' and 'ttf' (which also don't have dots), this should be 'xliff' instead of '.xliff'. The leading dot will prevent the exclusion from working correctly, and xliff files will still be checked for size, causing the pre-commit hook to fail.

Suggested change
exclude_types: ["pofile", "ttf", ".xliff"]
exclude_types: ["pofile", "ttf", "xliff"]

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

xliff isn't here I'll have to use exclude instead possibly

Copy link
Member Author

Choose a reason for hiding this comment

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

@seanbudd seanbudd marked this pull request as draft January 9, 2026 05:57
@seanbudd seanbudd added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants