seriesoftubes/tests
Frederic Jung e817beed1a
Translations keyed by labels instead of English text
tr('pnis.delivery_2_to_6_weeks') instead of tr('Delivery: 2 to 6 weeks'): the
English lives once, in src/i18n/en.js (inlined into the page at build, so no
extra request), and it/pt/fr map the same labels. Changing English wording no
longer renames a key in every dictionary.

- 2,899 labels, made from where each text is used and its first words; short
  shared words are common.*
- plurals are one label with {one, other}: trn('label', n)
- static markup: data-i18n="label", data-i18n-aria-label, data-i18n-title
- saves from 1.33 and older stored English text in a few places; tr() still
  resolves it
- i18n-check: undefined/unused labels, markup drift, plural shape; i18n-add.js
  works on labels and --rename updates src/ too
- the old-branch port tool gives old English-keyed code and dictionaries the
  same labels
2026-10-27 11:05:09 +01:00
..
fixtures Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
helpers Routing reference test runs on today's routing loop; perf bench reads exported saves 2026-10-26 08:40:20 +01:00
build.test.js Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01:00
game.test.js The broadband panel shows each city's real price per gigabit and real revenue, not the base rate 2026-10-27 11:56:55 +10:00
harness.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
i18n.test.js Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01:00
inbox.test.js Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01:00
issues.test.js City density rule: retire 15 crowded Brazilian cities from new games 2026-10-27 10:09:12 +01:00
latency.test.js Far-away transit backhaul is slow, and slow is bad service 2026-10-26 23:29:49 +01:00
levels.test.js Router trade-ins, one swap a day, and speed-based requirements (#82) 2026-10-25 21:49:51 +01:00
modes.test.js RouteScript: AI button, help page and ready-made scripts 2026-10-26 21:44:59 +01:00
pages.test.js Docs and guard rails: GitHub Pages only, where code goes, updated skills 2026-10-27 10:15:12 +01:00
peering.test.js Add Crowdflare Rackstar embedded caches 2026-10-26 20:33:20 -05:00
perf.test.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
persist.test.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
regions.test.js City density rule: retire 15 crowded Brazilian cities from new games 2026-10-27 10:09:12 +01:00
routing-reference.test.js Routing reference test runs on today's routing loop; perf bench reads exported saves 2026-10-26 08:40:20 +01:00
sea-routing.test.js Sea routing: Suez and Panama crossings, great circles, fastest design back on par 2026-10-26 22:13:16 +01:00
services.test.js Stack a carrier's alien waves on one fiber into one contract 2026-10-26 23:48:34 +01:00
speed.test.js Routing makes far less garbage: no temporary arrays or closures in its hot loop 2026-10-26 13:41:13 +01:00
subsea-upgrade-timing.test.js Fix subsea upgrade scheduling and add one-click construction rush 2026-10-26 22:47:13 +00:00
supply.test.js Supply chain: hardware prices drift up, shortages come and go, spares and price locks 2026-10-27 09:25:47 +01:00