Skip to content

v2.2.1

Choose a tag to compare

@jamditis jamditis released this 16 Feb 23:45
· 109 commits to main since this release

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 in widget.html
  • i18n.js now correctly falls through to the EN object 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.html English 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