Repository navigation
v1.1.0 — Complete translations for all pages and languages
What's new
All 5 pages (line guide, commute comparison, news coverage, map, embed & share) are now fully translated into all 10 supported languages: Spanish, Chinese, Tagalog, Korean, Portuguese, Gujarati, Hindi, Italian, Arabic, and Polish.
Translation coverage
- ~175 new translation keys covering content that was previously English-only: Hoboken Terminal wayfinding map, transfer direction cards (PATH, ferry, Bus 126), Secaucus Junction guidance, timeline events, official resources, coverage page filters, map bridge info cards, and the entire embed/share page
- All 10 language files updated with translated values (303 keys each)
- 50 translated HTML pages regenerated with complete content
Bug fixes
- Language persistence: Navigating between pages now stays in the selected language instead of reverting to English
- Active nav link: Regex now correctly translates nav links with
aria-current="page"attribute - Hamburger menu label: Mobile menu label now shows translated text matching the active page
- Compare step 2: Step label replacement now handles both
<div>and<label>wrapper elements - Search placeholder: Entity mismatch fixed (
…vs…) so coverage search placeholder translates correctly - Screen reader label: Direction of travel sr-only span now translates alongside the visible label
- Duplicate skip links: Removed duplicate accessibility skip links from embed and map source HTML
- Duplicate hreflang tags: Generator now skips adding hreflang tags when they already exist in source HTML
Files changed
tools/generate-pages.py— 7 bug fixes + 10 new replacement functionstranslations/*.json— 11 files updated (en + 10 languages){lang}/*.html— 50 regenerated translated pagesembed.html,map.html— Source HTML duplicate skip link cleanup