seriesoftubes/scripts
Frederic Jung 0057e74472
Ship short ids instead of labels; checker, tests and docs for labels
The build swaps every label for a short id in the shipped page, the inlined
English and the translation files (scripts/lib/compile-labels.js). Labels
passed to N_() stay whole because saves keep them. Against 1.33: page +4%
gzipped (321 -> 335 KB), translations -40% (it.js 143 -> 85 KB); routing,
day, panels, dashboard, map and boot time unchanged.

- i18n-check rejects labels the build cannot see (outside tr/trn/N_)
- tests/pages.test.js plays the shipped page in English, Italian and French
- docs/adr/0003, add-strings skill, ARCHITECTURE, README, CONTRIBUTING,
  CLAUDE.md describe labels
2026-10-27 11:27:11 +01:00
..
legacy port-branch: keep English for labels your side still uses 2026-10-27 11:06:29 +01:00
lib Ship short ids instead of labels; checker, tests and docs for labels 2026-10-27 11:27:11 +01:00
build.js Ship short ids instead of labels; checker, tests and docs for labels 2026-10-27 11:27:11 +01:00
dev.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-add.js Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01:00
i18n-check.js Ship short ids instead of labels; checker, tests and docs for labels 2026-10-27 11:27:11 +01:00
perf-bench.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
perf-browser.js Benchmark in real Chromium too, and only call a row slower when the samples say so 2026-10-26 12:04:57 +01:00
perf-fixture.js Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
perf-stats.js Benchmark in real Chromium too, and only call a row slower when the samples say so 2026-10-26 12:04:57 +01:00
release-notes.js Persist games across reloads and announce new releases 2026-10-23 11:42:28 +02:00
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