Repository navigation
Add i18n and accessibility CI checks - #1280
Merged
Merged
Conversation
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.
Add i18n and accessibility CI checks
Summary
Adds automated pull-request checks for translation correctness, accessibility smoke coverage, and RTL layout behavior.
Closes #1272.
Motivation
The translation review found a real interpolation bug (
{{date}}/{{user}}rendering literally) that existing key-parity and empty-string tests did not catch. There was also no automated accessibility or RTL coverage.Changes
i18n checks
Extended
frontend/src/i18n/i18n.test.tswith@formatjs/icu-messageformat-parser:otherclause.{{name}}) are rejected.This catches:
Accessibility
Added
frontend/src/features/login/LoginPage.a11y.test.tsx:RTL layout
Added
frontend/tests/e2e/rtl.spec.ts:localStoragehtml[dir="rtl"]andhtml[lang="ar"]This avoids committed screenshot baselines while still catching direction and layout regressions.
CI
Updated
.github/workflows/frontend-build.ymlto run:The existing Playwright job runs the new RTL spec automatically.
Documentation
Updated
frontend/README.mdwith:Dependencies
Added dev dependencies:
@formatjs/icu-messageformat-parseraxe-corepackage-lock.jsonis updated.Tests
npm run check— passed.npm run i18n:check— 50 tests passed.npm run a11y:check— passed.npm test— 91 files, 898 tests passed.npm run test:e2e— 3 tests passed, including the new RTL spec.Follow-ups