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 |
||
|---|---|---|
| .. | ||
| military.js | ||
| README.md | ||
| social.js | ||
Per-area string files. Each is a browser script AND a Node module:
'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.