Upstream/public/js/strings/README.md
jvanvik b18645dca1 Phase 2: client military/social screens, WebSocket push, trade + endgame, review findings pending
Built: units/movements/reports/send/expansion screens, alliance/messages/rankings screens, ws client + server /ws push
(docs/PROTOCOL.md), Internet exchange trade, backbone endgame + world end, shared reports, buildDone relative levels.
Tested: npm test 175/175. Two adversarial reviews found issues (trade-leg recall exploit, __proto__ via validate.js,
rankings DoS, static headers, ...): fixes follow in the next commit.
NOT done: bots/balance, e2e suite, real-device checks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q2MJaQ5LXAHzGnTDgceT14
2026-10-11 19:05:03 +02:00

13 lines
506 B
Markdown

Per-area string files. Each is a browser script AND a Node module:
```js
'use strict';
(function (root, factory) {
if (typeof module === 'object' && module.exports) factory(require('../i18n.js'));
else factory(root.UpstreamI18n);
}(typeof self !== 'undefined' ? self : this, function (I) {
I.extend({ en: { 'units.title': 'Units' }, nb: { 'units.title': 'Enheter' } });
}));
```
Load it from index.html after i18n.js. test/client-i18n.test.js requires every .js here and enforces en/nb key parity.