Repository navigation
v2.2.1
What changed
Fixed: Widget embed showing raw translation keys
NJ101.5 Traffic embedded RerouteNJ's line guide widget and English users saw raw i18n keys (js.schedule_changes, js.before_normal, js.what_you_need_to_know) instead of text. The root cause: widget.html set window._T = {} for English, which is truthy — so when i18n.js checked if (!window._T), it skipped loading the built-in EN fallback object.
- Removed premature
window._T = {}assignments from the English path, catch blocks, and error handlers inwidget.html i18n.jsnow correctly falls through to theENobject for all English embed scenarios
New: i18n sync test suite
Added tests/test-i18n-sync.js with 37 tests validating three layers of translation sync:
- EN object parsing and section coverage
- Runtime
t()call key resolution against en.json widget.htmlEnglish path and error fallback behavior- Script load order and dependency chain validation
This was the third i18n bug in three days (Feb 14-16). The test suite catches all three bug patterns.
Day-one blog post
New article: "The cutover starts today" covering the Feb 15 Portal North Bridge cutover launch. Translated across all 10 languages. Support strip footer added to all pages.
Coverage expansion
86 new articles added to the coverage feed by the automated scraper (111 → 197 total).
Stats
| Metric | v2.2.0 | v2.2.1 |
|---|---|---|
| Test suites | 14 | 15 |
| Test checks | 948+ | 995+ |
| Coverage articles | 111 | 197 |
Full changelog: v2.2.0...v2.2.1