Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Generate AccessibilityDisplayString from thorium-locales#708

Merged
mickael-menu merged 4 commits intodevelopfrom
a11y-strings
Jan 28, 2026
Merged

Generate AccessibilityDisplayString from thorium-locales#708
mickael-menu merged 4 commits intodevelopfrom
a11y-strings

Conversation

Copy link
Member

mickael-menu commented Jan 28, 2026

Changed

Shared

  • Accessibility display strings are now sourced from the thorium-locales repository (instead of W3C's repository). Contributions are welcome on Weblate.

Copilot AI review requested due to automatic review settings January 28, 2026 12:36
mickael-menu temporarily deployed to LCP January 28, 2026 12:36 -- with GitHub Actions Inactive
mickael-menu temporarily deployed to LCP January 28, 2026 12:36 -- with GitHub Actions Inactive
Copilot started reviewing on behalf of mickael-menu January 28, 2026 12:36 View session
Copilot AI reviewed Jan 28, 2026
Copy link

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 migrates accessibility display strings from the W3C's publ-a11y-display-guide-localizations repository to the EDRLab's thorium-locales repository, enabling community contributions through Weblate. The change includes refactoring the localization generation scripts and updating the key naming conventions.

Changes:

  • Replaced W3C accessibility localization source with thorium-locales repository
  • Refactored build scripts to consolidate locale generation under a single convert-thorium-localizations.js script
  • Updated locale structure from en-US.lproj to en.lproj and added Italian (it) translations

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
BuildTools/Scripts/generate-a11y-extensions.js New script to generate Swift extensions from localization keys
BuildTools/Scripts/convert-thorium-localizations.js Refactored to support both LCP and accessibility localizations with new a11y project configuration
BuildTools/Scripts/convert-a11y-display-guide-localizations.js Removed (replaced by convert-thorium-localizations.js)
Makefile Simplified locale update process to use single script and removed W3C-specific commands
Sources/Shared/Resources/en.lproj/W3CAccessibilityMetadataDisplayGuide.strings Relocated from en-US to en and regenerated from thorium-locales
Sources/Shared/Resources/fr.lproj/W3CAccessibilityMetadataDisplayGuide.strings New French translations from thorium-locales
Sources/Shared/Resources/it.lproj/W3CAccessibilityMetadataDisplayGuide.strings New Italian translations from thorium-locales
Sources/Shared/Publication/Accessibility/AccessibilityDisplayString+Generated.swift Regenerated with alphabetically sorted keys and renamed constants
Sources/Shared/Publication/Accessibility/AccessibilityMetadataDisplayGuide.swift Updated to use renamed constants and added fallback logic for strings without compact/descriptive variants
Tests/SharedTests/Publication/Accessibility/AccessibilityMetadataDisplayGuideTests.swift Updated test expectations for renamed constants and added fallback behavior tests
Support/Carthage/Readium.xcodeproj/project.pbxproj Updated Xcode project to reference new locale directories
Support/Carthage/.xcodegen Updated paths from en-US to en/fr/it locales
CHANGELOG.md Documented the change to thorium-locales source

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

mickael-menu merged commit 4ce8051 into develop Jan 28, 2026
11 checks passed
mickael-menu deleted the a11y-strings branch January 28, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Copilot left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants