Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(changelog): publish the /event landing page entry, sync UI follow-ups
nirholas317864476585
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2d5db7805..a3519e11c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,7 +6,9 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-08-08+- **One link to share for the live event, with a real headcount**: three.ws/event is the front door for anyone who has never been in the world. It carries a ticking countdown, the run of show converted into your own timezone, an add-to-calendar file built in your browser (nothing about who is coming leaves your device), a plain-language walkthrough of what actually happens in there, and one big button into the world. It reads the same schedule file the countdown inside Play reads, so the two can never disagree. While the event is running the page shows how many people are standing in the world right now, read live from the game servers through a new public endpoint at /api/play/population. If that count cannot be reached the page says the doors are open and shows no number, rather than making one up. (`/event`) `[feature]`- **Play is safer, lighter on phones, and honest when something breaks**: A deep audit of the Play world shipped a batch of fixes. A player can no longer put markup in their display name and have it run in everyone else's browser when they loot that player's tombstone, and a coin whose artwork link was crafted to escape its CSS can no longer paint anything over the lobby. Losing your connection now recovers cleanly: the peers who left while you were offline disappear instead of standing around frozen and inflating the headcount, and rejoining no longer strands you behind a "You died" screen in a world you are actually alive in. Phones hold up far better, because the world now genuinely frees what it loads: crowd and NPC models, the sun's shadow map, the totem, the jumbotron and the dance floor are all released when you leave a world instead of piling up until the tab is killed. The Wheel of Fortune finally looks like a modal instead of an unstyled block, tells you when it cannot reach the server and lets you retry, and if you close it mid-payment the spin still settles and shows you what you won rather than silently swallowing a paid spin. The jobs board says it is loading instead of claiming there is no work, a very long coin symbol can no longer run over the LIVE badge on the market screen, and a broken world link now says so and leaves you in the lobby instead of building a convincing world nobody else can join. (`/play`) `[fix, security, improvement]`+- **Rejoining a world after a dropped connection no longer leaves ghosts behind**: If your connection dropped inside a coin world and came back, the people around you could end up duplicated: a frozen copy of everyone standing where they were when you dropped, plus their live selves, and a motionless copy of you standing at the spawn point on everyone else's screen. Reconnecting now rebuilds the crowd from what the world server actually holds, retires anyone who left while you were away, and tells the server to retire your old session the moment you return. Standing still through a drop no longer strands you at the spawn point either, and a tab you left in the background for a few minutes now checks its connection the instant you come back instead of sitting on a dead one that still claims to be connected. Nameplates past sixty metres stop being drawn, so a plaza with a hundred people in it costs what the people near you cost. (`/play`) `[fix, improvement]`## 2026-08-07diff --git a/data/changelog.json b/data/changelog.jsonindex 83ba9116f..1feedee46 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,25 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-08-08",+ "title": "Rejoining a world after a dropped connection no longer leaves ghosts behind",+ "summary": "If your connection dropped inside a coin world and came back, the people around you could end up duplicated: a frozen copy of everyone standing where they were when you dropped, plus their live selves, and a motionless copy of you standing at the spawn point on everyone else's screen. Reconnecting now rebuilds the crowd from what the world server actually holds, retires anyone who left while you were away, and tells the server to retire your old session the moment you return. Standing still through a drop no longer strands you at the spawn point either, and a tab you left in the background for a few minutes now checks its connection the instant you come back instead of sitting on a dead one that still claims to be connected. Nameplates past sixty metres stop being drawn, so a plaza with a hundred people in it costs what the people near you cost.",+ "tags": [+ "fix",+ "improvement"+ ],+ "link": "/play"+ },+ {+ "date": "2026-08-08",+ "title": "One link to share for the live event, with a real headcount",+ "summary": "three.ws/event is the front door for anyone who has never been in the world. It carries a ticking countdown, the run of show converted into your own timezone, an add-to-calendar file built in your browser (nothing about who is coming leaves your device), a plain-language walkthrough of what actually happens in there, and one big button into the world. It reads the same schedule file the countdown inside Play reads, so the two can never disagree. While the event is running the page shows how many people are standing in the world right now, read live from the game servers through a new public endpoint at /api/play/population. If that count cannot be reached the page says the doors are open and shows no number, rather than making one up.",+ "tags": [+ "feature"+ ],+ "link": "/event"+ },{"date": "2026-08-08","title": "Play is safer, lighter on phones, and honest when something breaks",diff --git a/public/changelog.json b/public/changelog.jsonindex f953eda19..c7fc8e5f9 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,11 +1,21 @@{- "generated_at": "2026-08-08T15:03:38.488Z",+ "generated_at": "2026-08-08T15:04:47.608Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws","url": "https://three.ws"},"entries": [+ {+ "date": "2026-08-08",+ "type": "update",+ "title": "One link to share for the live event, with a real headcount",+ "summary": "three.ws/event is the front door for anyone who has never been in the world. It carries a ticking countdown, the run of show converted into your own timezone, an add-to-calendar file built in your browser (nothing about who is coming leaves your device), a plain-language walkthrough of what actually happens in there, and one big button into the world. It reads the same schedule file the countdown inside Play reads, so the two can never disagree. While the event is running the page shows how many people are standing in the world right now, read live from the game servers through a new public endpoint at /api/play/population. If that count cannot be reached the page says the doors are open and shows no number, rather than making one up.",+ "link": "/event",+ "tags": [+ "feature"+ ]+ },{"date": "2026-08-08","type": "update",@@ -18,6 +28,17 @@"improvement"]},+ {+ "date": "2026-08-08",+ "type": "update",+ "title": "Rejoining a world after a dropped connection no longer leaves ghosts behind",+ "summary": "If your connection dropped inside a coin world and came back, the people around you could end up duplicated: a frozen copy of everyone standing where they were when you dropped, plus their live selves, and a motionless copy of you standing at the spawn point on everyone else's screen. Reconnecting now rebuilds the crowd from what the world server actually holds, retires anyone who left while you were away, and tells the server to retire your old session the moment you return. Standing still through a drop no longer strands you at the spawn point either, and a tab you left in the background for a few minutes now checks its connection the instant you come back instead of sitting on a dead one that still claims to be connected. Nameplates past sixty metres stop being drawn, so a plaza with a hundred people in it costs what the people near you cost.",+ "link": "/play",+ "tags": [+ "fix",+ "improvement"+ ]+ },{"date": "2026-08-07","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex ed97c6af1..dc7f672ec 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -6,6 +6,14 @@<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/><description>What's new on three.ws: features, improvements, and releases, newest first.</description><language>en</language>+ <item>+ <title>One link to share for the live event, with a real headcount</title>+ <link>https://three.ws/event</link>+ <guid isPermaLink="false">2026-08-08:One link to share for the live event, with a real headcount</guid>+ <pubDate>Sat, 08 Aug 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>three.ws/event is the front door for anyone who has never been in the world. It carries a ticking countdown, the run of show converted into your own timezone, an add-to-calendar file built in your browser (nothing about who is coming leaves your device), a plain-language walkthrough of what actually happens in there, and one big button into the world. It reads the same schedule file the countdown inside Play reads, so the two can never disagree. While the event is running the page shows how many people are standing in the world right now, read live from the game servers through a new public endpoint at /api/play/population. If that count cannot be reached the page says the doors are open and shows no number, rather than making one up.</description>+ </item><item><title>Play is safer, lighter on phones, and honest when something breaks</title><link>https://three.ws/play</link>@@ -14,6 +22,14 @@<category>fix</category><description>A deep audit of the Play world shipped a batch of fixes. A player can no longer put markup in their display name and have it run in everyone else's browser when they loot that player's tombstone, and a coin whose artwork link was crafted to escape its CSS can no longer paint anything over the lobby. Losing your connection now recovers cleanly: the peers who left while you were offline disappear instead of standing around frozen and inflating the headcount, and rejoining no longer strands you behind a "You died" screen in a world you are actually alive in. Phones hold up far better, because the world now genuinely frees what it loads: crowd and NPC models, the sun's shadow map, the totem, the jumbotron and the dance floor are all released when you leave a world instead of piling up until the tab is killed. The Wheel of Fortune finally looks like a modal instead of an unstyled block, tells you when it cannot reach the server and lets you retry, and if you close it mid-payment the spin still settles and shows you what you won rather than silently swallowing a paid spin. The jobs board says it is loading instead of claiming there is no work, a very long coin symbol can no longer run over the LIVE badge on the market screen, and a broken world link now says so and leaves you in the lobby instead of building a convincing world nobody else can join.</description></item>+ <item>+ <title>Rejoining a world after a dropped connection no longer leaves ghosts behind</title>+ <link>https://three.ws/play</link>+ <guid isPermaLink="false">2026-08-08:Rejoining a world after a dropped connection no longer leaves ghosts behind</guid>+ <pubDate>Sat, 08 Aug 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>If your connection dropped inside a coin world and came back, the people around you could end up duplicated: a frozen copy of everyone standing where they were when you dropped, plus their live selves, and a motionless copy of you standing at the spawn point on everyone else's screen. Reconnecting now rebuilds the crowd from what the world server actually holds, retires anyone who left while you were away, and tells the server to retire your old session the moment you return. Standing still through a drop no longer strands you at the spawn point either, and a tab you left in the background for a few minutes now checks its connection the instant you come back instead of sitting on a dead one that still claims to be connected. Nameplates past sixty metres stop being drawn, so a plaza with a hundred people in it costs what the people near you cost.</description>+ </item><item><title>Docs · The agent runtime and transaction guard</title><link>https://three.ws/docs/agent-runtime</link>diff --git a/public/features.json b/public/features.jsonindex c39ff55a2..7900ba449 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-08T15:03:38.347Z",+ "generated_at": "2026-08-08T15:04:47.415Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/game/cosmetics-shop.js b/src/game/cosmetics-shop.jsindex e50ef0165..78b46a06f 100644--- a/src/game/cosmetics-shop.js+++ b/src/game/cosmetics-shop.js@@ -18,6 +18,7 @@import { log } from '../shared/log.js';import { purchaseCosmetic, resolveShopAccount } from './cosmetics-purchase.js';import { openModal } from './a11y.js';+import { t } from './i18n-play.js';function el(tag, props = {}, kids = []) {const n = document.createElement(tag);@@ -97,12 +98,13 @@ export class CosmeticsShop {this.panel = el('div', {class: 'cc-shop-panel', role: 'dialog', 'aria-modal': 'true',- 'aria-label': 'Cosmetics shop',+ 'aria-label': t('play.shop_aria', 'Open cosmetics shop'),+ 'data-i18n-attr': 'aria-label:play.shop_panel_aria',}, [el('div', { class: 'cc-shop-head' }, [el('div', { class: 'cc-shop-title' }, [- el('span', { class: 'cc-shop-title-main', text: 'Cosmetics' }),- el('span', { class: 'cc-shop-title-sub', text: 'Preview live on your avatar' }),+ el('span', { class: 'cc-shop-title-main', text: 'Cosmetics', 'data-i18n': 'play.shop_h' }),+ el('span', { class: 'cc-shop-title-sub', text: 'Preview live on your avatar', 'data-i18n': 'play.shop_sub' }),]),// Rarest Fits — the platform flex board (R25). Lazy-loaded on click so// it never weighs down the shop bundle.diff --git a/src/game/cosmetics-wardrobe.js b/src/game/cosmetics-wardrobe.jsindex 7fa3d86af..dd13d01ce 100644--- a/src/game/cosmetics-wardrobe.js+++ b/src/game/cosmetics-wardrobe.js@@ -21,6 +21,7 @@ import {COSMETICS, SLOTS, SLOT_LABELS, DEFAULT_LOADOUT,} from '../../multiplayer/src/cosmetics-catalog.js';import { openModal } from './a11y.js';+import { t } from './i18n-play.js';function el(tag, props = {}, kids = []) {const n = document.createElement(tag);@@ -72,7 +73,7 @@ export class CosmeticsWardrobe {this._injectStyles();this.closeBtn = el('button', {- class: 'cw-close', type: 'button', 'aria-label': 'Close wardrobe',+ class: 'cw-close', type: 'button', 'aria-label': 'Close wardrobe', 'data-i18n-attr': 'aria-label:play.wardrobe_close_aria',onclick: () => this.close(),}, [el('span', { 'aria-hidden': 'true', text: '✕' })]);@@ -80,11 +81,12 @@ export class CosmeticsWardrobe {this.panel = el('div', {class: 'cw-panel', role: 'dialog', 'aria-modal': 'true',- 'aria-label': 'My Cosmetics wardrobe',+ 'aria-label': t('play.wardrobe_panel_aria', 'My Cosmetics wardrobe'),+ 'data-i18n-attr': 'aria-label:play.wardrobe_panel_aria',}, [el('div', { class: 'cw-head' }, [el('div', { class: 'cw-title' }, [- el('span', { class: 'cw-title-main', text: 'My Cosmetics' }),+ el('span', { class: 'cw-title-main', text: 'My Cosmetics', 'data-i18n': 'play.wardrobe_h' }),el('span', { class: 'cw-title-sub', text: 'Equip your owned looks — persists across all worlds' }),]),this.closeBtn,diff --git a/src/game/economy-ui.js b/src/game/economy-ui.jsindex 55e4fe687..6ac9deb0b 100644--- a/src/game/economy-ui.js+++ b/src/game/economy-ui.js@@ -10,6 +10,7 @@import './economy-ui.css';import { itemDisplay } from './items.js';import { openModal, announce } from './a11y.js';+import { t } from './i18n-play.js';function el(tag, props = {}, kids = []) {const n = document.createElement(tag);@@ -34,7 +35,11 @@ export class EconPanel {this._onClose = onClose;this.body = el('div', { class: 'ec-body' });this.status = el('div', { class: 'ec-status', role: 'status', 'aria-live': 'polite' });- this.closeBtn = el('button', { class: 'ec-x', type: 'button', 'aria-label': 'Close', text: '✕', onclick: () => this.close() });+ this.closeBtn = el('button', {+ class: 'ec-x', type: 'button', text: '✕',+ 'aria-label': t('play.close', 'Close'), 'data-i18n-attr': 'aria-label:play.close',+ onclick: () => this.close(),+ });this.card = el('div', { class: 'ec-card', role: 'dialog', 'aria-modal': 'true', 'aria-label': title }, [el('div', { class: 'ec-head' }, [el('span', { class: 'ec-title', text: title }),@@ -198,20 +203,20 @@ export function openStorePanel({ ui, net }) {class StorePanel extends EconPanel {constructor({ ui, net, onClose }) {- super({ title: 'General Store', onClose });+ super({ title: t('play.store_title', 'General Store'), onClose });this.ui = ui;this.net = net;this.tab = 'buy';this.catalog = { sell: [], buy: [] };this.profile = { gold: 0, inv: [] };- this.tabs = el('div', { class: 'ec-tabs', role: 'tablist', 'aria-label': 'Store mode' }, [- el('button', { class: 'ec-tab ec-on', type: 'button', role: 'tab', 'data-tab': 'buy', 'aria-selected': 'true', text: 'Buy', onclick: () => this._setTab('buy') }),- el('button', { class: 'ec-tab', type: 'button', role: 'tab', 'data-tab': 'sell', 'aria-selected': 'false', text: 'Sell', onclick: () => this._setTab('sell') }),+ this.tabs = el('div', { class: 'ec-tabs', role: 'tablist', 'aria-label': t('play.store_mode', 'Store mode'), 'data-i18n-attr': 'aria-label:play.store_mode' }, [+ el('button', { class: 'ec-tab ec-on', type: 'button', role: 'tab', 'data-tab': 'buy', 'aria-selected': 'true', text: 'Buy', 'data-i18n': 'play.store_buy', onclick: () => this._setTab('buy') }),+ el('button', { class: 'ec-tab', type: 'button', role: 'tab', 'data-tab': 'sell', 'aria-selected': 'false', text: 'Sell', 'data-i18n': 'play.store_sell', onclick: () => this._setTab('sell') }),]);this.purseValue = el('b', { text: '0' });this.purse = el('div', { class: 'ec-purse' }, [- el('span', { text: 'Cash on hand' }),+ el('span', { text: 'Cash on hand', 'data-i18n': 'play.cash_on_hand' }),this.purseValue,]);this.card.insertBefore(this.purse, this.body);@@ -352,7 +357,7 @@ export function openBankPanel({ ui, net }) {class BankPanel extends EconPanel {constructor({ ui, net, onClose }) {- super({ title: 'Bank / ATM', onClose });+ super({ title: t('play.bank_title', 'Bank / ATM'), onClose });this.ui = ui;this.net = net;this.gold = 0;@@ -363,33 +368,33 @@ class BankPanel extends EconPanel {// simply not looked yet is the worst thing this panel could say.this.purseValue = el('b', { class: 'ec-pending-val', text: '…' });this.purse = el('div', { class: 'ec-purse' }, [- el('span', { text: 'Cash on hand' }),+ el('span', { text: 'Cash on hand', 'data-i18n': 'play.cash_on_hand' }),this.purseValue,]);this.bankValue = el('b', { class: 'ec-pending-val', text: '…' });this.bankLine = el('div', { class: 'ec-purse' }, [- el('span', { text: 'Banked (protected)' }),+ el('span', { text: 'Banked (protected)', 'data-i18n': 'play.banked' }),this.bankValue,]);this.card.insertBefore(this.purse, this.body);this.card.insertBefore(this.bankLine, this.body);- this.depositInput = el('input', { type: 'number', min: '0', step: '1', class: 'ec-bank-input', 'aria-label': 'Amount to deposit', placeholder: '0' });- this.withdrawInput = el('input', { type: 'number', min: '0', step: '1', class: 'ec-bank-input', 'aria-label': 'Amount to withdraw', placeholder: '0' });+ this.depositInput = el('input', { type: 'number', min: '0', step: '1', class: 'ec-bank-input', 'aria-label': 'Amount to deposit', 'data-i18n-attr': 'aria-label:play.bank_deposit_aria', placeholder: '0' });+ this.withdrawInput = el('input', { type: 'number', min: '0', step: '1', class: 'ec-bank-input', 'aria-label': 'Amount to withdraw', 'data-i18n-attr': 'aria-label:play.bank_withdraw_aria', placeholder: '0' });- this.depositBtn = el('button', { class: 'ec-row-btn', type: 'button', text: 'Deposit', onclick: () => this._deposit() });- this.withdrawBtn = el('button', { class: 'ec-row-btn ec-secondary', type: 'button', text: 'Withdraw', onclick: () => this._withdraw() });+ this.depositBtn = el('button', { class: 'ec-row-btn', type: 'button', text: 'Deposit', 'data-i18n': 'play.bank_deposit', onclick: () => this._deposit() });+ this.withdrawBtn = el('button', { class: 'ec-row-btn ec-secondary', type: 'button', text: 'Withdraw', 'data-i18n': 'play.bank_withdraw', onclick: () => this._withdraw() });// "Max" fills the field from a balance we may not know yet, so both// presets are held with the transfer buttons until the profile lands.this.depositMaxBtn = el('button', { class: 'ec-bank-preset', type: 'button', text: 'Max', onclick: () => { this.depositInput.value = String(this.gold); } });this.withdrawMaxBtn = el('button', { class: 'ec-bank-preset', type: 'button', text: 'Max', onclick: () => { this.withdrawInput.value = String(this.bankBal); } });- this.body.appendChild(el('div', { class: 'ec-row-sub', text: 'Deposit: protects cash from a death drop.' }));+ this.body.appendChild(el('div', { class: 'ec-row-sub', text: 'Deposit: protects cash from a death drop.', 'data-i18n': 'play.bank_deposit_sub' }));this.body.appendChild(el('div', { class: 'ec-bank-amount' }, [this.depositInput, this.depositBtn]));this.body.appendChild(el('div', { class: 'ec-bank-presets' }, [this.depositMaxBtn]));- this.body.appendChild(el('div', { class: 'ec-row-sub', text: 'Withdraw: moves banked cash back to your purse.' }));+ this.body.appendChild(el('div', { class: 'ec-row-sub', text: 'Withdraw: moves banked cash back to your purse.', 'data-i18n': 'play.bank_withdraw_sub' }));this.body.appendChild(el('div', { class: 'ec-bank-amount' }, [this.withdrawInput, this.withdrawBtn]));this.body.appendChild(el('div', { class: 'ec-bank-presets' }, [this.withdrawMaxBtn]));diff --git a/src/game/quests-ui.js b/src/game/quests-ui.jsindex eb18e6bb5..9c15a9fe5 100644--- a/src/game/quests-ui.js+++ b/src/game/quests-ui.js@@ -12,6 +12,7 @@// this one is styled to match.import { EconPanel } from './economy-ui.js';+import { t } from './i18n-play.js';import './quests-ui.css';function el(tag, props = {}, kids = []) {@@ -65,7 +66,7 @@ export function openQuestsPanel({ ui, net } = {}, highlight) {class QuestsPanel extends EconPanel {constructor({ ui, net, highlight, onClose }) {- super({ title: 'Jobs Board', onClose });+ super({ title: t('play.jobs_title_panel', 'Jobs Board'), onClose });this.ui = ui;this.net = net;this.tab = 'board';@@ -86,8 +87,8 @@ class QuestsPanel extends EconPanel {this.eventBoard = null;this._boardPoll = null;- this.boardTabBtn = el('button', { class: 'ec-tab ec-on', type: 'button', role: 'tab', 'aria-selected': 'true', text: 'Board', onclick: () => this._setTab('board') });- this.activeTabBtn = el('button', { class: 'ec-tab', type: 'button', role: 'tab', 'aria-selected': 'false', text: 'Active', onclick: () => this._setTab('active') });+ this.boardTabBtn = el('button', { class: 'ec-tab ec-on', type: 'button', role: 'tab', 'aria-selected': 'true', text: 'Board', 'data-i18n': 'play.jobs_tab_board', onclick: () => this._setTab('board') });+ this.activeTabBtn = el('button', { class: 'ec-tab', type: 'button', role: 'tab', 'aria-selected': 'false', text: 'Active', 'data-i18n': 'play.jobs_tab_active', onclick: () => this._setTab('active') });// The Event tab only exists when there is an event to show: live right now, or// finished with a standing still worth reading. Hidden until then rather than// shown empty, so the board doesn't grow a dead tab for 51 weeks of the year.@@ -95,7 +96,7 @@ class QuestsPanel extends EconPanel {class: 'ec-tab qb-event-tab', type: 'button', hidden: true, role: 'tab', 'aria-selected': 'false',text: `${EVENT_GLYPH} Event`, onclick: () => this._setTab('event'),});- this.tabs = el('div', { class: 'ec-tabs', role: 'tablist', 'aria-label': 'Jobs board sections' }, [this.boardTabBtn, this.activeTabBtn, this.eventTabBtn]);+ this.tabs = el('div', { class: 'ec-tabs', role: 'tablist', 'aria-label': t('play.jobs_sections', 'Jobs board sections'), 'data-i18n-attr': 'aria-label:play.jobs_sections' }, [this.boardTabBtn, this.activeTabBtn, this.eventTabBtn]);this.card.insertBefore(this.tabs, this.body);this.track(net.on('quests', (snap) => {@@ -185,7 +186,11 @@ class QuestsPanel extends EconPanel {}_render() {- this.activeTabBtn.textContent = this.board.active.length ? `Active (${this.board.active.length})` : 'Active';+ // Interpolated, so it cannot be a static data-i18n attribute; the count has+ // to sit inside the translated string, not be glued onto the end of it.+ this.activeTabBtn.textContent = this.board.active.length+ ? t('play.jobs_tab_active_n', 'Active ({{n}})', { n: this.board.active.length })+ : t('play.jobs_tab_active', 'Active');const showEvent = this._hasEvent();this.eventTabBtn.hidden = !showEvent;// The tab can vanish under the player when the window closes mid-session.diff --git a/src/game/spin-wheel-ui.js b/src/game/spin-wheel-ui.jsindex cda1ce1b1..461845f0f 100644--- a/src/game/spin-wheel-ui.js+++ b/src/game/spin-wheel-ui.js@@ -21,6 +21,7 @@import './spin-wheel.css';import { detectSolanaWallet, SOLANA_RPC, solanaTxExplorerUrl } from '../erc8004/solana-deploy.js';import { openModal, prefersReducedMotion } from './a11y.js';+import { t } from './i18n-play.js';const NETWORK = 'mainnet';const SPIN_DECIMALS = 6; // $THREE uses 6 decimals (same as pump.fun mints)@@ -121,7 +122,7 @@ class SpinWheel {// ----------------------------------------------------------------- view_build() {- this.overlay = el('div', { class: 'kg-spin-overlay', role: 'dialog', 'aria-modal': 'true', 'aria-label': 'Wheel of Fortune' });+ this.overlay = el('div', { class: 'kg-spin-overlay', role: 'dialog', 'aria-modal': 'true', 'aria-label': t('play.wheel_title', 'Wheel of Fortune'), 'data-i18n-attr': 'aria-label:play.wheel_title' });this.overlay.addEventListener('click', (e) => { if (e.target === this.overlay) this.close(); });this.canvas = el('canvas', { class: 'kg-spin-canvas', width: '640', height: '640' });@@ -131,11 +132,11 @@ class SpinWheel {this.resultLine = el('div', { class: 'kg-spin-result', 'aria-live': 'polite' });- this.freeBtn = el('button', { class: 'kg-spin-btn kg-spin-free', type: 'button', onclick: () => this._free() }, 'Free spin');+ this.freeBtn = el('button', { class: 'kg-spin-btn kg-spin-free', type: 'button', 'data-i18n': 'play.wheel_free', onclick: () => this._free() }, 'Free spin');this.freeSub = el('div', { class: 'kg-spin-sub' });const freeBlock = el('div', { class: 'kg-spin-action' }, [this.freeBtn, this.freeSub]);- this.paidBtn = el('button', { class: 'kg-spin-btn kg-spin-paid', type: 'button', onclick: () => this._paid() }, 'Paid spin');+ this.paidBtn = el('button', { class: 'kg-spin-btn kg-spin-paid', type: 'button', 'data-i18n': 'play.wheel_paid', onclick: () => this._paid() }, 'Paid spin');this.paidSub = el('div', { class: 'kg-spin-sub' });const paidBlock = el('div', { class: 'kg-spin-action' }, [this.paidBtn, this.paidSub]);@@ -145,9 +146,12 @@ class SpinWheel {this.gate = el('div', { class: 'kg-spin-gate', hidden: true });this.legend = el('div', { class: 'kg-spin-legend' });- const close = el('button', { class: 'kg-spin-close', type: 'button', 'aria-label': 'Close', onclick: () => this.close() }, '✕');+ const close = el('button', { class: 'kg-spin-close', type: 'button', 'aria-label': t('play.close', 'Close'), 'data-i18n-attr': 'aria-label:play.close', onclick: () => this.close() }, '✕');const head = el('div', { class: 'kg-spin-head' }, [- el('div', { class: 'kg-spin-title' }, ["Wheel of Fortune", el('span', { class: 'kg-spin-sub2', text: "Fortune's Folly · Mainland" })]),+ el('div', { class: 'kg-spin-title' }, [+ el('span', { text: 'Wheel of Fortune', 'data-i18n': 'play.wheel_title' }),+ el('span', { class: 'kg-spin-sub2', text: "Fortune's Folly · Mainland", 'data-i18n': 'play.wheel_sub' }),+ ]),close,]);