Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

Merge remote-tracking branch 'upstream/main' into core-rb2

Meir Michanie71f7a581691f
diff --cc CHANGELOG.md
index 1637811cd,68ab1c52d..6b7a89a93
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -520,7 -766,12 +789,11 @@@ Analyst records for loaded satellites,
- Separate navigation, share restoration, visual settings and panel state into focused UI owners with explicit dependencies and terminal cleanup.
- Separate layer lifecycle transactions from panel construction and render/detection reactions; retain existing transition and refresh behavior.
- ## Satellite pass prediction
-
+ - Let CLI tools, development launchers and the setup doctor use an explicit project directory while retaining their existing default paths.
+
+ - Split application scene, controls, catalog, tools and HTML into reusable components; configure application request services and sources without changing global fetch. Preserve standalone markup and voice behavior. Explicit annotation navigation may resolve a distant named target.
+
+ ### Satellite pass prediction
- Bisect pass rise/set to ~0.2 s and fit peak elevation with a parabola.
- Mark passes visible from Earth-shadow and civil-twilight checks.
diff --cc build/vite.js
index bf2ea9f98,5f1a8e964..745d6d384
--- a/build/vite.js
+++ b/build/vite.js
@@@ -7,10 -52,10 +52,12 @@@ export function createBrowserViteConfig
publicDir,
googleApiKey,
cesiumToken,
+ defaultLocale = '',
+ secondaryLocale = '',
+ mapillaryToken,
host = 'localhost',
port = 4173,
+ allowedHosts = DEFAULT_ALLOWED_HOSTS,
command,
} = {}) {
return {
@@@ -49,14 -107,10 +109,18 @@@
define: {
'import.meta.env.GOOGLE_MAPS_API_KEY': JSON.stringify(googleApiKey),
'import.meta.env.CESIUM_ION_TOKEN': JSON.stringify(cesiumToken),
+ // Locale pair (i18n): the client's default + secondary UI locale. These
+ // are NOT secrets and are read by src/i18n/locale.js, which validates
+ // them against the shipped catalogs and falls back to the built-in
+ // en-only pair (while English is the only shipped catalog) for
+ // empty/invalid/unshipped values. Explicit define entries are required
+ // because Vite only auto-exposes VITE_-prefixed vars on import.meta.env.
+ 'import.meta.env.GEV_DEFAULT_LOCALE': JSON.stringify(defaultLocale),
+ 'import.meta.env.GEV_SECONDARY_LOCALE': JSON.stringify(secondaryLocale),
+ // Mapillary client tokens are public by design (see SECURITY.md).
+ 'import.meta.env.MAPILLARY_CLIENT_TOKEN': JSON.stringify(
+ mapillaryToken ?? '',
+ ),
},
build: { chunkSizeWarningLimit: 1500 },
};
diff --cc docs/CURRENT-STATE.md
index b9f55990c,274294b5d..22fd95cba
--- a/docs/CURRENT-STATE.md
+++ b/docs/CURRENT-STATE.md
@@@ -2804,127 -3007,8 +3007,127 @@@ test:track` 43 tracking invariants · h
> ISS pass prediction, and per-layer data attribution. Gate at close: unit 98/98, build clean,
> track 19/19, + five QA harnesses (heading 16/16, sprites 9/9, cctv 5/5, failstate 5/5,
> attribution 18/18). New modules: `src/data/{motionModel,aircraftMeta,aircraftClass,aircraftIcons,issPass,routePlausible,dataCredits}.js`.
- > The live runtime now declares 29 voice tools; the 17→20 count above is retained only as milestone history.
+ > The live runtime now declares 30 voice tools; the 17→20 count above is retained only as milestone history.
+### Internationalization / catalog locales (September 2026)
+
+The application-owned UI is fully extracted into message catalogs; **en**
+is the only shipped locale in this foundation state — additional locales
+land as stacked follow-up PRs, one per locale (Spanish first), each
+following the locale-addition recipe in
+[`docs/TRANSLATORS.md`](./TRANSLATORS.md). English is the default, the
+source catalog, and the fallback. The subsystem lives in `src/i18n/`:
+
+- **File map.** `src/i18n/locale.js` owns locale resolution, guarded storage
+ (`gev:locale:v1`), the one-shot `?lang=` override, and `<html lang>`/`<html
+ dir>` metadata. `src/i18n/index.js` owns the catalog registry, `t()`
+ (interpolation + `Intl.PluralRules` plural selection), `formatNumber` /
+ `formatDate`, `applyDocumentTranslations()`, and
+ `persistLocaleAndReload()`. The shipped catalog is four flat message maps
+ — `src/i18n/locales/en/{shell,cockpit,layers,setup}.js`, 912 keys (shell
+ 34, cockpit 369, layers 388, setup 121). Plural entries are the en
+ `{ one, other }` shape; a future locale may add only cardinal categories
+ `Intl.PluralRules` reports valid for it, and an entry lacking the selected
+ category degrades to `other` at runtime. Locale-code normalization
+ (`es-MX`/`es_419` → `es`, plus fr/ru/uk and variants) ships ahead of the
+ locales on purpose: knowing a code is hygiene, shipping is catalog-driven
+ through `CATALOG_LOCALES`.
+- **Selector.** The command dock carries a compact locale switch: a static
+ `.dock-locale-switch` group container in `index.html` whose buttons
+ (`.dock-locale-btn`) are rendered at runtime by `src/ui/applicationShell.js`
+ `_initLocaleSelector()` — one per locale in the configured pair; while
+ only English ships that is a single EN button. A click persists the
+ choice and reloads the page with the hash preserved, so no live re-apply
+ of already-rendered dynamic panels is needed.
+- **Locale pair config.** `GEV_DEFAULT_LOCALE` and `GEV_SECONDARY_LOCALE` in
+ `.env`, injected as `import.meta.env` defines by `vite.config.js`; both
+ values are validated against the shipped catalogs (`CATALOG_LOCALES`),
+ and the offered set is `dedup([default, secondary, 'en'])`. While English
+ is the only shipped catalog the built-in pair is en-only, so every
+ configuration degenerates to a single offered locale; an invalid,
+ unshipped, or degenerate configured pair falls back to that built-in
+ en-only shape (dev-only warn). The first secondary-locale PR restores the
+ built-in en+es pair.
+- **Resolution order.** `?lang=<locale>` (search string only; never
+ persisted, never written into share links; stripped by
+ `persistLocaleAndReload`; accepted only for offered locales) → stored
+ `gev:locale:v1` (re-checked against the pair) →
+ `navigator.languages` (regional variants normalize to the primary tag:
+ `es-MX`/`es_419` → `es`) → the CONFIGURED default locale. Unsupported
+ values defer to the next
+ step rather than forcing English.
+- **Gates** (all under `node --test src/i18n/`, 40 tests):
+ `catalog.test.mjs` enforces per-locale key, placeholder-name, and
+ plural-shape parity with the strict exact-parity flip ON
+ (`REQUIRE_FULL_PARITY`; `GEV_I18N_REQUIRE_FULL_LOCALE_PARITY=0` opts out
+ for staged work; the loops are vacuous while only en ships — each locale
+ PR meets them from day one);
+ `markupCoverage.test.mjs` requires every `data-i18n*` attribute in
+ `index.html` to resolve in every shipped catalog and rejects unknown attribute
+ spellings; `i18n.test.mjs` pins precedence, guards, fallback,
+ interpolation, the plural-selection contract (synthetic missing-category
+ degradation; real-catalog plural pins arrive with each locale PR), and
+ DOM application; `repairPass.test.mjs` anchors en byte-identity for
+ extracted literals and rejects a locale-scoped CCTV wrap rule shipping
+ ahead of its locale (per-locale value anchors arrive with each locale
+ PR).
+- **Accepted deferrals (do not "fix" silently):**
+ - The military-awareness subject header literal `FLIGHT / VESSEL WINDOW`
+ (`src/data/militaryAwareness.js`) stays English; the literal is
+ test-pinned in `src/data/militaryAwareness.test.mjs`.
+ - The visible cockpit-brief tab tokens `SIG` / `NEWS` / `LOCAL`
+ (`index.html`) stay untranslated to match the runtime keys; their
+ `aria-label`s ARE localized (`cockpit.brief.tab*AriaLabel`).
+ - `src/voice/gevActions.js` tool-result confirmation strings stay English
+ by contract (voice tool schemas and spoken confirmations are
+ keep-English; see the Keep-English boundary in `docs/TRANSLATORS.md`).
+ - Number formatting is still the pre-i18n `toLocaleString` policy at:
+ `src/ui.js:1442`, `src/data/satellites.js:829`,
+ `src/data/flights.js:436` (`'en-US'` pinned), and
+ `src/data/rocketLaunches.js:2281/2299/2364/2371/2374`
+ (default-locale). A locale-aware number-format policy is deferred; the
+ `formatNumber` helper exists in `src/i18n/index.js` when that lands.
+
+### Overpass proxy mirror rotation (September 2026)
+
+- `/api/overpass` fans out across four public mirrors. `overpassPayloadIsData()` governs cache reads, writes, and stale fallback: only a 2xx that is neither rate-limited nor a body-level runtime error qualifies. Previously stored refusals are ignored on both fresh and stale reads, so upgrading does not require manually clearing the disk cache.
+- HTTP refusals such as 406 now rotate alongside the existing network, rate-limit, and runtime-error cases. A refusal from one mirror no longer prevents reaching healthy alternatives or persists under the seven-day road/month-long boundary cache TTLs. Concurrent identical queries share one mirror sequence; if it fails, both the initiating and joined callers can use the same last-good data.
+- A refusal every mirror agrees on is still reported with the first mirror's status and body, so a genuinely malformed query says what upstream said — but only after every mirror has had the chance to answer it. `fetchOverpassPayload` takes injectable endpoints and fetch so the rotation is tested without a live mirror (`src/overpassProxy.test.mjs`).
+
+### Share-link v2 layer state (August 2026)
+
+- Generated share links use a deterministic v2 hash. Existing camera, visual,
+ HUD, detection, post-processing, celestial, scope, and map-stack fields remain,
+ with compact fields for enabled layers, allowlisted layer options, panel state,
+ and the active preset's allowlisted shader controls. An absent layer field uses
+ deterministic defaults; an explicit empty field means no enabled layers.
+- The registry seals only after all 16 production layers register, and every
+ layer has an explicit serialization disposition. Unknown enabled-layer tokens
+ reject the layer payload; unknown option tokens are ignored. Restoration
+ settles independently per layer so one failed or unavailable source cannot
+ block its siblings.
+- Stable visible options are limited to aircraft 3D mode, selected civilian and
+ military flight IDs, Satellite catalog and selection, CCTV coverage/projection/
+ auto-hop, and Radio filter/volume. Playback and tuning, live-data health,
+ calibration, caches, lifecycle state, temporary Context ownership, and derived
+ effects are deliberately excluded. Radio restore never selects or plays a
+ station.
+- Normal loads restore the last successful explicit UI, voice, or tool choice
+ from versioned local storage. Any valid camera share wins for the current load
+ without overwriting recipient preferences. Restore ownership is split by
+ visibility, option/selection, camera, visual, map, and individual panel lane:
+ a newer explicit action supersedes only the field it owns. In particular,
+ navigation cannot turn unrelated layers off, and an option change cannot
+
+#### Keep-English adjudications (post-merge catch-ups)
+
+- `src/ui/visualPresets.js` `'ELASTIC'` — detection-allocation STRATEGY IDENTIFIER (persisted
+ under `gev:detection-allocation`, compared via `dataset.allocation ===`), not display copy.
+- `src/ui/layerPanel.js` guidance meta — the `{source} · {statusMessage}` composition uses a
+ locale-neutral interpunct; the statusMessage itself IS localized via `installationFeedback`.
+- `src/ui/mapSourceControls.js` `'...'` switching label and the orbit `'↻'` glyph —
+ punctuation/glyphs, identical across locales.
+
## Canonical Docs Order
Use docs in this order when details conflict:
diff --cc scripts/package-boundaries.json
index dfb42419f,497be5b08..a7c447afd
--- a/scripts/package-boundaries.json
+++ b/scripts/package-boundaries.json
@@@ -477,92 -409,59 +409,83 @@@
"src/styles/noir.js",
"src/styles/snow.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"map-source-controls": {
- "exports": [
- "./ui/maps"
- ],
+ "exports": ["./ui/maps"],
"modules": [
+ "src/ui/mapSource.js",
+ "src/ui/mapSourceControls.js",
+ "src/mapStackChips.js",
+ "src/keySetupCore.mjs",
- "src/localRequestGate.mjs"
++ "src/localRequestGate.mjs",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/keySetupCore.mjs",
- "src/mapStackChips.js",
- "src/ui/mapSource.js",
- "src/ui/mapSourceControls.js"
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
"layer-panel": {
- "exports": [
- "./ui/layers",
- "./ui/layers/feedback"
- ],
+ "exports": ["./ui/layers", "./ui/layers/feedback"],
"modules": [
- "src/data/feedState.js",
+ "src/ui/layers.js",
+ "src/ui/layerPanel.js",
+ "src/ui/weatherPanel.js",
+ "src/ui/railCards.js",
+ "src/ui/railCardBlocks.js",
+ "src/ui/chipGroup.js",
+ "src/ui/rowList.js",
+ "src/ui/railTimeline.js",
+ "src/ui/clearLayersControl.js",
+ "src/loadingFeedback.js",
"src/data/installationFeedback.js",
+ "src/keySetupCore.mjs",
+ "src/localRequestGate.mjs",
+ "src/data/feedState.js",
- "src/data/layerSnapshot.js"
+ "src/data/layerSnapshot.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/keySetupCore.mjs",
- "src/loadingFeedback.js",
- "src/ui/chipGroup.js",
- "src/ui/clearLayersControl.js",
- "src/ui/layerPanel.js",
- "src/ui/layers.js",
- "src/ui/railCardBlocks.js",
- "src/ui/railCards.js",
- "src/ui/railTimeline.js",
- "src/ui/rowList.js",
- "src/ui/weatherPanel.js"
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
"location-controls": {
- "exports": [
- "./ui/location"
- ],
+ "exports": ["./ui/location"],
"modules": [
+ "src/ui/location.js",
+ "src/ui/locationControls.js",
+ "src/ui/locationSearch.js",
+ "src/locationStatus.js",
- "src/app/stateChannel.js"
+ "src/app/stateChannel.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/locationStatus.js",
- "src/ui/location.js",
- "src/ui/locationControls.js",
- "src/ui/locationSearch.js"
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
"radio-controls": {
- "exports": [
- "./ui/radio"
- ],
+ "exports": ["./ui/radio"],
"modules": [
+ "src/ui/radio.js",
+ "src/ui/radioControls.js",
+ "src/ui/radioBindings.js",
+ "src/ui/radioPresentation.js",
- "src/ui/radioTunerModel.js"
++ "src/ui/radioTunerModel.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/ui/radio.js",
- "src/ui/radioBindings.js",
- "src/ui/radioControls.js",
- "src/ui/radioPresentation.js",
- "src/ui/radioTunerModel.js"
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
@@@ -582,25 -473,14 +497,20 @@@
"src/ui/cctvCalibration.js",
"src/ui/cctvControls.js",
"src/ui/cctvFrames.js",
+ "src/ui/cctvVideo.js",
- "src/ui/cctvPresentation.js"
+ "src/ui/cctvPresentation.js",
- "src/ui/cctvVideo.js"
- ],
- "external": []
- },
- "context-controls": {
- "exports": [
- "./ui/context",
- "./ui/context/policy"
- ],
- "modules": [
- "src/contextModePolicy.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/rightRailPolicy.js",
++ "src/i18n/locales/en/shell.js"
+ ],
+ "external": []
+ },
+ "context-controls": {
+ "exports": ["./ui/context", "./ui/context/policy"],
+ "modules": [
"src/ui/context.js",
"src/ui/contextActions.js",
"src/ui/contextBindings.js",
@@@ -610,7 -490,9 +520,15 @@@
"src/ui/contextSession.js",
"src/ui/contextSubscriptions.js",
"src/ui/contextTransactions.js",
- "src/ui/panelRailGeometry.js"
+ "src/contextModePolicy.js",
+ "src/rightRailPolicy.js",
- "src/ui/panelRailGeometry.js"
++ "src/ui/panelRailGeometry.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
@@@ -643,27 -517,19 +553,31 @@@
"src/ui/cockpitPresentation.js",
"src/ui/cockpitSignals.js",
"src/ui/cockpitTrackingController.js",
- "src/ui/displayPanelScroll.js",
- "src/ui/panelRailGeometry.js"
+ "src/cockpitMath.js",
+ "src/cockpitUtilityLayout.js",
+ "src/cockpitVisionPolicy.js",
- "src/ui/panelRailGeometry.js"
++ "src/ui/panelRailGeometry.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"scene-controls": {
- "exports": [
- "./ui/scenes"
- ],
+ "exports": ["./ui/scenes"],
"modules": [
+ "src/ui/scenes.js",
+ "src/ui/sceneControls.js",
- "src/ui/scenePresentation.js"
++ "src/ui/scenePresentation.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/ui/sceneControls.js",
- "src/ui/scenePresentation.js",
- "src/ui/scenes.js"
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
@@@ -803,17 -655,25 +703,31 @@@
"src/ui/visualInput.js",
"src/ui/visualPresets.js",
"src/ui/visualSettings.js",
- "src/ui/weatherPanel.js",
- "src/worldFocus.js"
+ "src/worldFocus.js",
+ "src/data/feedState.js",
+ "src/data/layerSnapshot.js",
+ "src/ui/aircraftDisplay.js",
+ "src/layers/weather/imageryHost.js",
+ "src/ui/layerBindings.js",
+ "src/ui/displayBindings.js",
+ "src/ui/shellFacade.js",
+ "src/ui/streetLevelControls.js",
+ "src/ui/streetLevelPresentation.js",
+ "src/ui/localSdrControls.js",
+ "src/layers/localAdsb/feedNames.js",
+ "src/ui/localSdrPresentation.js",
- "src/data/cameraArrival.js"
++ "src/data/cameraArrival.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"ui-styles": {
- "exports": [
- "./ui/styles"
- ],
+ "exports": ["./ui/styles"],
"modules": [
"src/ui/styles.js",
"style.css",
@@@ -868,71 -727,59 +781,65 @@@
"external": []
},
"scenes": {
- "exports": [
- "./scenes"
- ],
+ "exports": ["./scenes"],
"modules": [
- "src/app/stateChannel.js",
- "src/bloom.js",
- "src/contextModePolicy.js",
- "src/data/bhoteKoshiFloodPath.js",
+ "src/scenes/nepalEvidencePack.js",
"src/data/bhoteKoshiIncidentPlaces.js",
"src/data/bhoteKoshiShotPaths.js",
- "src/data/cameraArrival.js",
- "src/data/inputOwnership.js",
- "src/director/authoring.js",
- "src/director/camera.js",
- "src/director/cameraDocument.js",
+ "src/data/bhoteKoshiFloodPath.js",
+ "src/maps/catalog.js",
+ "src/scenes/director.js",
+ "src/scenes/playbackAdapter.js",
+ "src/director/playback.js",
+ "src/scenes/recipes.js",
+ "src/scenes/scenePolicy.js",
+ "src/bloom.js",
+ "src/app/stateChannel.js",
+ "src/ui/scenes.js",
+ "src/ui/sceneControls.js",
+ "src/ui/scenePresentation.js",
+ "src/contextModePolicy.js",
"src/director/clock.js",
+ "src/director/timeline.js",
+ "src/scenes/shotPresentation.js",
+ "src/scenes/packs/registry.js",
+ "src/scenes/packs/defaults.js",
+ "src/scenes/packs/nepal.js",
"src/director/document.js",
+ "src/scenes/project.js",
"src/director/documentFields.js",
- "src/director/interactions/document.js",
- "src/director/interactions/session.js",
+ "src/director/cameraDocument.js",
+ "src/director/camera.js",
+ "src/scenes/cameraMotion.js",
+ "src/director/packs/source.js",
+ "src/director/packs/session.js",
"src/director/packs/geojson.js",
"src/director/packs/manifest.js",
- "src/director/packs/session.js",
- "src/director/packs/source.js",
- "src/director/playback.js",
+ "src/scenes/dataPacks/controller.js",
+ "src/scenes/dataPacks/presentation.js",
+ "src/scenes/dataPacks/geometry.js",
+ "src/director/interactions/document.js",
+ "src/director/interactions/session.js",
+ "src/scenes/interactions.js",
+ "src/data/inputOwnership.js",
"src/director/sharing/bundle.js",
- "src/director/sharing/lifetime.js",
"src/director/sharing/preview.js",
- "src/director/timeline.js",
+ "src/director/sharing/lifetime.js",
+ "src/director/authoring.js",
+ "src/scenes/sharing.js",
+ "src/ui/sceneSharing.js",
- "src/data/cameraArrival.js"
++ "src/data/cameraArrival.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/maps/catalog.js",
- "src/scenes/cameraMotion.js",
- "src/scenes/dataPacks/controller.js",
- "src/scenes/dataPacks/geometry.js",
- "src/scenes/dataPacks/presentation.js",
- "src/scenes/director.js",
- "src/scenes/interactions.js",
- "src/scenes/nepalEvidencePack.js",
- "src/scenes/packs/defaults.js",
- "src/scenes/packs/nepal.js",
- "src/scenes/packs/registry.js",
- "src/scenes/playbackAdapter.js",
- "src/scenes/project.js",
- "src/scenes/recipes.js",
- "src/scenes/scenePolicy.js",
- "src/scenes/sharing.js",
- "src/scenes/shotPresentation.js",
- "src/ui/sceneControls.js",
- "src/ui/scenePresentation.js",
- "src/ui/sceneSharing.js",
- "src/ui/scenes.js"
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"live-observations": {
- "exports": [
- "./sources/live"
- ],
+ "exports": ["./sources/live"],
"modules": [
"src/sources/live/aircraft.js",
"src/sources/live/contract.js",
@@@ -981,23 -819,21 +879,27 @@@
"src/layers/flights/motion.js",
"src/layers/flights/policy.js",
"src/layers/flights/queries.js",
- "src/layers/flights/recordPolicy.js",
- "src/layers/flights/records.js",
"src/layers/flights/rendering.js",
- "src/layers/flights/snapshotRenderer.js",
"src/layers/flights/state.js",
"src/layers/flights/testing.js",
- "src/layers/flights/tracking.js"
+ "src/layers/flights/tracking.js",
+ "src/layers/flights/records.js",
+ "src/layers/flights/recordPolicy.js",
+ "src/layers/flights/snapshotRenderer.js",
+ "src/layers/flights/modelSpec.js",
+ "src/data/inputOwnership.js",
- "src/data/modelEligibility.js"
++ "src/data/modelEligibility.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"military-flights": {
- "exports": [
- "./layers/military"
- ],
+ "exports": ["./layers/military"],
"modules": [
"src/cyberSonar.js",
"src/data/aircraftClass.js",
@@@ -1030,22 -859,20 +925,26 @@@
"src/layers/military/motion.js",
"src/layers/military/policy.js",
"src/layers/military/queries.js",
- "src/layers/military/recordPolicy.js",
- "src/layers/military/records.js",
"src/layers/military/rendering.js",
- "src/layers/military/snapshotRenderer.js",
"src/layers/military/state.js",
"src/layers/military/testing.js",
- "src/layers/military/tracking.js"
+ "src/layers/military/tracking.js",
+ "src/layers/military/records.js",
+ "src/layers/military/recordPolicy.js",
+ "src/layers/military/snapshotRenderer.js",
+ "src/data/inputOwnership.js",
- "src/data/modelEligibility.js"
++ "src/data/modelEligibility.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"aircraft-mechanics": {
- "exports": [
- "./aircraft"
- ],
+ "exports": ["./aircraft"],
"modules": [
"src/data/aircraftClass.js",
"src/data/aircraftIcons.js",
@@@ -1092,23 -910,22 +982,28 @@@
"src/layers/vessels/lifecycle.js",
"src/layers/vessels/policy.js",
"src/layers/vessels/queries.js",
- "src/layers/vessels/recordPolicy.js",
- "src/layers/vessels/records.js",
"src/layers/vessels/rendering.js",
"src/layers/vessels/selection.js",
- "src/layers/vessels/snapshotRenderer.js",
"src/layers/vessels/state.js",
"src/layers/vessels/testing.js",
- "src/layers/vessels/tracking.js"
+ "src/layers/vessels/tracking.js",
+ "src/data/iconOrientation.js",
+ "src/data/vesselLabels.js",
+ "src/layers/vessels/records.js",
+ "src/layers/vessels/recordPolicy.js",
+ "src/layers/vessels/snapshotRenderer.js",
- "src/data/inputOwnership.js"
++ "src/data/inputOwnership.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"earthquakes": {
- "exports": [
- "./layers/earthquakes"
- ],
+ "exports": ["./layers/earthquakes"],
"modules": [
"src/layers/earthquakes/index.js",
"src/layers/earthquakes/model.js",
@@@ -1162,18 -965,14 +1043,20 @@@
"src/layers/firms/selection.js",
"src/layers/firms/source.js",
"src/layers/firms/state.js",
- "src/layers/firms/viewport.js"
+ "src/layers/firms/viewport.js",
- "src/data/inputOwnership.js"
++ "src/data/inputOwnership.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"satellites-layer": {
- "exports": [
- "./layers/satellites"
- ],
+ "exports": ["./layers/satellites"],
"modules": [
- "src/data/inputOwnership.js",
"src/data/issPass.js",
"src/data/satelliteClass.js",
"src/data/satellitePass.js",
@@@ -1197,26 -991,15 +1075,21 @@@
"src/layers/satellites/source.js",
"src/layers/satellites/state.js",
"src/layers/satellites/testing.js",
- "src/layers/satellites/tracking.js"
- ],
- "external": [
- "cesium",
- "satellite.js"
- ]
- },
- "launches-layer": {
- "exports": [
- "./layers/launches"
- ],
- "modules": [
- "src/cyberSonar.js",
+ "src/layers/satellites/tracking.js",
- "src/data/inputOwnership.js"
+ "src/data/inputOwnership.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
++ "src/i18n/locales/en/shell.js"
+ ],
+ "external": ["cesium", "satellite.js"]
+ },
+ "launches-layer": {
+ "exports": ["./layers/launches"],
+ "modules": [
+ "src/cyberSonar.js",
"src/layers/launches/camera.js",
"src/layers/launches/controls.js",
"src/layers/launches/index.js",
@@@ -1235,33 -1018,17 +1108,23 @@@
"src/layers/launches/selection.js",
"src/layers/launches/source.js",
"src/layers/launches/state.js",
- "src/layers/launches/testing.js"
+ "src/layers/launches/testing.js",
- "src/data/inputOwnership.js"
++ "src/data/inputOwnership.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"installations-layer": {
- "exports": [
- "./layers/installations"
- ],
+ "exports": ["./layers/installations"],
"modules": [
- "src/data/bundledJson.js",
"src/data/cameraSensitivity.js",
- "src/data/infrastructureOverlayEntry.js",
- "src/data/inputOwnership.js",
"src/data/installationFeedback.js",
- "src/data/local_data/osm_military_names/names.json",
"src/data/militaryInstallationData.js",
- "src/data/militaryNames.js",
- "src/data/retryableLoad.js",
- "src/data/tomtomTiles.js",
- "src/i18n/index.js",
- "src/i18n/locale.js",
- "src/i18n/locales/en/cockpit.js",
- "src/i18n/locales/en/layers.js",
- "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
"src/layers/installations/controls.js",
"src/layers/installations/index.js",
"src/layers/installations/ingestion.js",
@@@ -1274,35 -1040,31 +1136,37 @@@
"src/layers/installations/source.js",
"src/layers/installations/state.js",
"src/layers/installations/viewport.js",
+ "src/data/inputOwnership.js",
+ "src/data/tomtomTiles.js",
"src/sources/capability.js",
"src/sources/httpBody.js",
- "src/sources/militaryTileGeometry.js",
"src/sources/openFreeMap.js",
+ "src/sources/militaryTileGeometry.js",
+ "src/sources/vectorTiles.js",
"src/sources/phaseTiming.js",
+ "src/data/militaryNames.js",
"src/sources/requestDeadline.js",
- "src/sources/vectorTiles.js"
+ "src/data/local_data/osm_military_names/names.json",
+ "src/data/bundledJson.js",
+ "src/data/retryableLoad.js",
+ "src/layers/installations/namedMarkers.js",
- "src/data/infrastructureOverlayEntry.js"
++ "src/data/infrastructureOverlayEntry.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium",
- "@mapbox/vector-tile",
- "pbf"
- ]
+ "external": ["cesium", "@mapbox/vector-tile", "pbf"]
},
"awareness-layer": {
- "exports": [
- "./layers/awareness"
- ],
+ "exports": ["./layers/awareness"],
"modules": [
- "src/cockpitMath.js",
"src/cyberSonar.js",
+ "src/cockpitMath.js",
"src/data/iconOrientation.js",
"src/data/militaryAwarenessEngine.js",
- "src/i18n/index.js",
- "src/i18n/locale.js",
- "src/i18n/locales/en/cockpit.js",
- "src/i18n/locales/en/layers.js",
- "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
"src/layers/awareness/controls.js",
"src/layers/awareness/dependencies.js",
"src/layers/awareness/focus.js",
@@@ -1319,16 -1081,12 +1183,18 @@@
"src/layers/awareness/state.js",
"src/layers/awareness/subject.js",
"src/layers/awareness/testing.js",
-- "src/ui/panelRailGeometry.js"
++ "src/ui/panelRailGeometry.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"traffic-layer": {
- "exports": [
- "./layers/traffic"
- ],
+ "exports": ["./layers/traffic"],
"modules": [
"src/data/cameraSensitivity.js",
"src/data/flowMatch.js",
@@@ -1363,34 -1115,20 +1223,26 @@@
"src/layers/traffic/surface.js",
"src/layers/traffic/timing.js",
"src/layers/traffic/viewport.js",
+ "src/sources/overpassRoads.js",
"src/sources/capability.js",
"src/sources/httpBody.js",
- "src/sources/militaryTileGeometry.js",
"src/sources/openFreeMap.js",
- "src/sources/overpassRoads.js",
+ "src/sources/militaryTileGeometry.js",
+ "src/sources/vectorTiles.js",
"src/sources/phaseTiming.js",
- "src/sources/requestDeadline.js",
- "src/sources/vectorTiles.js"
- ],
- "external": [
- "cesium",
- "pbf",
- "@mapbox/vector-tile"
- ]
- },
- "bikeshare-layer": {
- "exports": [
- "./layers/bikeshare"
- ],
- "modules": [
- "src/data/cameraSensitivity.js",
- "src/data/inputOwnership.js",
- "src/layers/traffic/roadModes.js"
++ "src/layers/traffic/roadModes.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
++ "src/i18n/locales/en/shell.js"
+ ],
+ "external": ["cesium", "pbf", "@mapbox/vector-tile"]
+ },
+ "bikeshare-layer": {
+ "exports": ["./layers/bikeshare"],
+ "modules": [
"src/layers/bikeshare/controls.js",
"src/layers/bikeshare/index.js",
"src/layers/bikeshare/ingestion.js",
@@@ -1404,19 -1143,16 +1257,22 @@@
"src/layers/bikeshare/source.js",
"src/layers/bikeshare/state.js",
"src/layers/bikeshare/testing.js",
- "src/layers/bikeshare/viewport.js"
+ "src/layers/bikeshare/viewport.js",
+ "src/data/inputOwnership.js",
- "src/data/cameraSensitivity.js"
++ "src/data/cameraSensitivity.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"cctv-layer": {
- "exports": [
- "./layers/cctv"
- ],
+ "exports": ["./layers/cctv"],
"modules": [
"src/data/cctvCards.js",
- "src/data/cctvFootprint.js",
"src/data/cctvGizmo.js",
"src/data/cctvLod.js",
"src/data/cctvViewshed.js",
@@@ -1451,21 -1181,55 +1301,61 @@@
"src/layers/cctv/rendering.js",
"src/layers/cctv/selection.js",
"src/layers/cctv/source.js",
- "src/layers/cctv/sourcePolicy.js",
"src/layers/cctv/state.js",
"src/layers/cctv/testing.js",
- "src/layers/cctv/videoPlayback.js",
- "src/overlays/worldOverlayTokens.js"
- ],
- "external": [
- "hls.js",
- "cesium"
- ]
+ "src/overlays/worldOverlayTokens.js",
+ "src/data/cctvFootprint.js",
+ "src/data/inputOwnership.js",
- "src/layers/cctv/sourcePolicy.js"
++ "src/layers/cctv/sourcePolicy.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
+ ],
+ "external": ["hls.js", "cesium"]
+ },
+ "street-level-layer": {
+ "exports": [
+ "./layers/street-level",
+ "./layers/street-level/mapillary",
+ "./layers/street-level/mapillary/source"
+ ],
+ "modules": [
+ "src/layers/streetLevel/index.js",
+ "src/layers/streetLevel/providers/mapillary/index.js",
+ "src/layers/streetLevel/viewerHost.js",
+ "src/layers/streetLevel/credits.js",
+ "src/layers/streetLevel/cameraFollow.js",
+ "src/layers/streetLevel/marker.js",
+ "src/layers/streetLevel/view.js",
+ "src/layers/streetLevel/uiState.js",
+ "src/layers/streetLevel/groundCast.js",
+ "src/layers/streetLevel/meshSampler.js",
+ "src/layers/streetLevel/pickRouter.js",
+ "src/data/idSwitches.js",
+ "src/layers/streetLevel/params.js",
+ "src/layers/streetLevel/registry.js",
+ "src/layers/streetLevel/filter.js",
+ "src/layers/streetLevel/policy.js",
+ "src/layers/streetLevel/state.js",
+ "src/layers/streetLevel/providers/mapillary/policy.js",
+ "src/layers/streetLevel/providers/mapillary/coverage.js",
+ "src/layers/streetLevel/providers/mapillary/sequences.js",
+ "src/layers/streetLevel/glyphs.js",
+ "src/layers/streetLevel/providers/mapillary/decode.js",
+ "src/layers/streetLevel/providers/mapillary/coverageFixture.mjs",
+ "src/layers/streetLevel/tileMath.js",
+ "src/layers/streetLevel/selection.js",
+ "src/layers/streetLevel/providers/mapillary/viewer.js",
+ "src/layers/streetLevel/providers/mapillary/source.js",
+ "scripts/qa-street-level.mjs"
+ ],
+ "external": ["cesium", "pbf", "@mapbox/vector-tile", "mapillary-js"]
},
"alpr-cameras": {
- "exports": [
- "./layers/alpr"
- ],
+ "exports": ["./layers/alpr"],
"modules": [
"src/layers/alpr/index.js",
"src/layers/alpr/model.js",
@@@ -1528,24 -1280,14 +1406,20 @@@
"src/layers/radio/tuning.js",
"src/layers/radio/tuningNoise.js",
"src/layers/radio/volume.js",
- "src/ui/radioTunerModel.js"
- ],
- "external": [
- "cesium"
- ]
- },
- "submarine-cables": {
- "exports": [
- "./layers/submarine-cables"
- ],
- "modules": [
+ "src/ui/radioTunerModel.js",
- "src/data/inputOwnership.js"
+ "src/data/inputOwnership.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
++ "src/i18n/locales/en/shell.js"
+ ],
+ "external": ["cesium"]
+ },
+ "submarine-cables": {
+ "exports": ["./layers/submarine-cables"],
+ "modules": [
"src/layers/submarineCables/geometry.js",
"src/layers/submarineCables/index.js",
"src/layers/submarineCables/ingestion.js",
@@@ -1555,16 -1297,13 +1429,19 @@@
"src/layers/submarineCables/policy.js",
"src/layers/submarineCables/rendering.js",
"src/layers/submarineCables/state.js",
- "src/layers/submarineCables/surface.js"
+ "src/layers/submarineCables/surface.js",
- "src/data/inputOwnership.js"
++ "src/data/inputOwnership.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"bundled-cables": {
- "exports": [
- "./sources/bundled-cables"
- ],
+ "exports": ["./sources/bundled-cables"],
"modules": [
"src/layers/submarineCables/bundledSource.js",
"src/data/local_data/telegeography_submarine_cables/cable-geo.json",
@@@ -1612,15 -1342,14 +1480,20 @@@
"src/maps/defaultSources.js",
"src/maps/google3d.js",
"src/maps/imagery.js",
- "src/maps/imageryComparison.js",
- "src/maps/imageryHost.js",
"src/maps/registry.js",
"src/maps/terrain.js",
- "src/maps/terrainRetry.js"
+ "src/maps/terrainRetry.js",
+ "src/keySetupCore.mjs",
+ "src/localRequestGate.mjs",
- "src/maps/imageryHost.js"
++ "src/maps/imageryHost.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"voice-connection": {
"exports": [
@@@ -1632,33 -1361,40 +1505,46 @@@
"./voice/realtime-session"
],
"modules": [
- "src/i18n/index.js",
- "src/i18n/locale.js",
- "src/i18n/locales/en/cockpit.js",
- "src/i18n/locales/en/layers.js",
- "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/voice/commands.js",
+ "src/voice/realtimeController.js",
+ "src/voice/realtimeBackend.js",
+ "src/voice/cloudVoiceAuth.js",
"src/voice/control.js",
"src/voice/layerSummary.js",
- "src/voice/realtimeBackend.js",
- "src/voice/realtimeConnection.js",
- "src/voice/realtimeController.js",
- "src/voice/realtimeCost.js",
- "src/voice/realtimeDiagnostics.js",
+ "src/voice/voiceCost.js",
+ "src/voice/commands.js",
+ "src/voice/session.js",
+ "src/voice/sessionCommands.js",
+ "src/voice/realtimeSession.js",
"src/voice/realtimeEvents.js",
- "src/voice/realtimeFacade.js",
- "src/voice/realtimeInput.js",
- "src/voice/realtimeInputPolicy.js",
"src/voice/realtimePreferences.js",
"src/voice/realtimeProtocol.js",
+ "src/voice/realtimeDiagnostics.js",
+ "src/voice/realtimeViewport.js",
+ "src/voice/realtimeInputPolicy.js",
+ "src/voice/realtimeInput.js",
+ "src/voice/realtimeCost.js",
+ "src/voice/realtimeFacade.js",
"src/voice/realtimeRadio.js",
- "src/voice/realtimeSession.js",
"src/voice/realtimeTurns.js",
- "src/voice/realtimeViewport.js",
- "src/voice/session.js",
- "src/voice/sessionCommands.js",
- "src/voice/voiceCost.js"
+ "src/voice/realtimeConnection.js",
+ "src/voice/turnMetrics.js",
+ "src/voice/speechLint.js",
+ "src/voice/voiceCard.js",
+ "src/voice/voiceCardPresentation.js",
+ "src/voice/resultDisplay.js",
+ "src/voice/referents.js",
+ "src/voice/layerManifest.js",
+ "src/voice/speech.js",
+ "src/voice/narration.js",
+ "src/voice/earcon.js",
+ "src/voice/pointerContext.js",
- "src/voice/pointerReticle.js"
++ "src/voice/pointerReticle.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
@@@ -2383,38 -1971,244 +2121,250 @@@
"src/voice/commands.js",
"src/voice/control.js",
"src/voice/gevActions.js",
+ "src/voice/speech.js",
+ "src/voice/earcon.js",
+ "src/voice/narration.js",
+ "src/voice/turnMetrics.js",
+ "src/voice/speechLint.js",
+ "src/voice/voiceCard.js",
+ "src/voice/voiceCardPresentation.js",
+ "src/voice/resultDisplay.js",
"src/voice/gevRealtime.js",
"src/voice/layerSummary.js",
+ "src/voice/cloudVoiceAuth.js",
"src/voice/realtimeBackend.js",
- "src/voice/realtimeConnection.js",
"src/voice/realtimeController.js",
- "src/voice/realtimeCost.js",
- "src/voice/realtimeDiagnostics.js",
- "src/voice/realtimeEvents.js",
- "src/voice/realtimeFacade.js",
- "src/voice/realtimeInput.js",
- "src/voice/realtimeInputPolicy.js",
- "src/voice/realtimePreferences.js",
- "src/voice/realtimeProtocol.js",
- "src/voice/realtimeRadio.js",
- "src/voice/realtimeSession.js",
- "src/voice/realtimeTurns.js",
- "src/voice/realtimeViewport.js",
- "src/voice/session.js",
- "src/voice/sessionCommands.js",
"src/voice/voiceCost.js",
"src/weatherEffectsMath.js",
- "src/worldFocus.js"
- ],
- "external": [
- "hls.js",
- "@mapbox/vector-tile",
- "cesium",
- "egm96-universal",
- "mgrs",
- "pbf",
+ "src/worldFocus.js",
+ "src/layers/flights/records.js",
+ "src/layers/flights/recordPolicy.js",
+ "src/layers/flights/snapshotRenderer.js",
+ "src/layers/flights/modelSpec.js",
+ "src/layers/military/records.js",
+ "src/layers/military/recordPolicy.js",
+ "src/layers/military/snapshotRenderer.js",
+ "src/layers/vessels/records.js",
+ "src/layers/vessels/recordPolicy.js",
+ "src/layers/vessels/snapshotRenderer.js",
+ "src/data/inputOwnership.js",
+ "src/annotations/drawMode.js",
+ "src/annotations/drawTool.js",
+ "src/data/routeSteps.js",
+ "src/layers/directions/index.js",
+ "src/layers/directions/source.js",
+ "src/data/directions.js",
+ "src/app/layers/directions.js",
+ "src/search/coordinateGeocoder.js",
+ "src/search/coordinateParser.js",
+ "src/search/presetGeocoder.js",
+ "src/voice/session.js",
+ "src/voice/sessionCommands.js",
+ "src/voice/realtimeSession.js",
+ "src/voice/realtimeEvents.js",
+ "src/app/localGeojsonServices.js",
+ "src/data/feedState.js",
+ "src/data/layerSnapshot.js",
+ "src/layers/alpr/records.js",
+ "src/layers/earthquakes/records.js",
+ "src/app/layers/perimeters.js",
+ "src/layers/perimeters/index.js",
+ "src/layers/perimeters/source.js",
+ "src/layers/perimeters/records.js",
+ "src/layers/perimeters/cards.js",
+ "src/layers/perimeters/inciweb.js",
+ "src/layers/cctv/sourcePolicy.js",
+ "src/sources/reference.js",
+ "src/search/nominatim.js",
+ "src/nominatimGeocode.js",
+ "src/sources/httpBody.js",
+ "src/sources/nominatim.js",
+ "src/app/layers/transit.js",
+ "src/data/transit.js",
+ "src/data/transitFeeds.js",
+ "src/data/transitIcons.js",
+ "src/data/transitPresetStyle.js",
+ "src/layers/transit/controls.js",
+ "src/layers/transit/height.js",
+ "src/layers/transit/index.js",
+ "src/layers/transit/ingestion.js",
+ "src/layers/transit/lifecycle.js",
+ "src/layers/transit/policy.js",
+ "src/layers/transit/queries.js",
+ "src/layers/transit/rendering.js",
+ "src/layers/transit/selection.js",
+ "src/layers/transit/state.js",
+ "src/layers/transit/testing.js",
+ "src/layers/transit/viewport.js",
+ "src/data/cameraSensitivity.js",
+ "src/data/contactPlayback.js",
+ "src/data/contactTrailRenderer.js",
+ "src/data/transitProxy.js",
+ "src/data/gtfsRealtime.js",
+ "src/data/modelEligibility.js",
+ "src/layers/transit/trails.js",
+ "src/layers/transit/movement.js",
+ "src/layers/transit/qaMetrics.js",
+ "src/layers/transit/source.js",
+ "src/sources/transitHistory.js",
+ "src/sources/featureGeometry.js",
+ "src/sources/overpassFeaturesRecords.js",
+ "src/sources/overpassFeatures.js",
+ "src/sources/featureSource.js",
+ "src/sources/overpassRoads.js",
+ "src/ui/aircraftDisplay.js",
+ "src/ui/layerBindings.js",
+ "src/ui/displayBindings.js",
+ "src/ui/shellFacade.js",
+ "src/voice/realtimePreferences.js",
+ "src/voice/realtimeProtocol.js",
+ "src/voice/realtimeDiagnostics.js",
+ "src/voice/realtimeViewport.js",
+ "src/voice/realtimeInputPolicy.js",
+ "src/voice/realtimeInput.js",
+ "src/voice/realtimeCost.js",
+ "src/voice/realtimeFacade.js",
+ "src/voice/realtimeRadio.js",
+ "src/voice/realtimeTurns.js",
+ "src/voice/realtimeConnection.js",
+ "src/layers/weather/index.js",
+ "src/layers/weather/clock.js",
+ "src/layers/weather/rendering.js",
+ "src/layers/weather/shellRendering.js",
+ "src/layers/weather/infraredAlpha.js",
+ "src/layers/weather/infraredImage.js",
+ "src/layers/weather/source.js",
+ "src/director/clock.js",
+ "src/director/timeline.js",
+ "src/scenes/shotPresentation.js",
+ "src/scenes/packs/registry.js",
+ "src/scenes/packs/defaults.js",
+ "src/scenes/packs/nepal.js",
+ "src/director/document.js",
+ "src/scenes/project.js",
+ "src/director/documentFields.js",
+ "src/director/cameraDocument.js",
+ "src/director/camera.js",
+ "src/scenes/cameraMotion.js",
+ "src/director/packs/source.js",
+ "src/director/packs/session.js",
+ "src/director/packs/geojson.js",
+ "src/director/packs/manifest.js",
+ "src/scenes/dataPacks/controller.js",
+ "src/scenes/dataPacks/presentation.js",
+ "src/scenes/dataPacks/geometry.js",
+ "src/director/interactions/document.js",
+ "src/director/interactions/session.js",
+ "src/scenes/interactions.js",
+ "src/director/sharing/bundle.js",
+ "src/director/sharing/preview.js",
+ "src/director/sharing/lifetime.js",
+ "src/director/authoring.js",
+ "src/scenes/sharing.js",
+ "src/ui/sceneSharing.js",
+ "src/layers/weather/imageryOrder.js",
+ "src/layers/weather/imageryHost.js",
+ "src/layers/cyclones/index.js",
+ "src/layers/cyclones/rendering.js",
+ "src/layers/cyclones/labels.js",
+ "src/layers/cyclones/source.js",
+ "src/app/layers/localAdsb.js",
+ "src/layers/localAdsb/index.js",
+ "src/layers/localAdsb/policy.js",
+ "src/layers/localAdsb/card.js",
+ "src/layers/localAdsb/feeds.js",
+ "src/layers/localAdsb/status.js",
+ "src/layers/localAdsb/feedNames.js",
+ "src/layers/localAdsb/motion.js",
+ "src/layers/localAdsb/models.js",
+ "src/layers/localAdsb/enrichment.js",
+ "src/sources/adsbRecords.js",
+ "src/sdr/controller.js",
+ "src/sdr/spectrum.js",
+ "src/sdr/gain.js",
+ "src/sdr/usbDevices.js",
+ "src/ui/localSdrControls.js",
+ "src/ui/localSdrPresentation.js",
+ "src/app/layers/recentImagery.js",
+ "src/layers/recentImagery/index.js",
+ "src/layers/recentImagery/source.js",
+ "src/layers/recentImagery/model.js",
+ "src/layers/recentImagery/catalog.js",
+ "src/layers/recentImagery/rendering.js",
+ "src/layers/recentImagery/thumbnails.js",
+ "src/maps/imageryHost.js",
+ "src/ui/recentImagery.js",
+ "src/ui/imageryBoxTool.js",
+ "src/voice/pointerContext.js",
+ "src/voice/pointerReticle.js",
+ "src/voice/deixis.js",
+ "src/voice/referents.js",
+ "src/voice/pointerPick.js",
+ "src/data/pickedContext.js",
+ "src/ui/streetLevelControls.js",
+ "src/ui/streetLevelPresentation.js",
+ "src/layers/streetLevel/index.js",
+ "src/layers/streetLevel/providers/mapillary/index.js",
+ "src/layers/streetLevel/viewerHost.js",
+ "src/layers/streetLevel/credits.js",
+ "src/layers/streetLevel/cameraFollow.js",
+ "src/layers/streetLevel/marker.js",
+ "src/layers/streetLevel/view.js",
+ "src/layers/streetLevel/uiState.js",
+ "src/layers/streetLevel/groundCast.js",
+ "src/layers/streetLevel/meshSampler.js",
+ "src/layers/streetLevel/pickRouter.js",
+ "src/layers/streetLevel/params.js",
+ "src/layers/streetLevel/registry.js",
+ "src/layers/streetLevel/filter.js",
+ "src/layers/streetLevel/policy.js",
+ "src/layers/streetLevel/state.js",
+ "src/layers/streetLevel/providers/mapillary/policy.js",
+ "src/layers/streetLevel/providers/mapillary/coverage.js",
+ "src/layers/streetLevel/providers/mapillary/sequences.js",
+ "src/layers/streetLevel/glyphs.js",
+ "src/layers/streetLevel/providers/mapillary/decode.js",
+ "src/layers/streetLevel/providers/mapillary/coverageFixture.mjs",
+ "src/layers/streetLevel/tileMath.js",
+ "src/layers/streetLevel/selection.js",
+ "src/layers/streetLevel/providers/mapillary/viewer.js",
+ "src/layers/streetLevel/providers/mapillary/source.js",
+ "src/app/layers/streetLevel.js",
+ "src/layers/alpr/tileRecords.js",
+ "src/sources/capability.js",
+ "src/sources/openFreeMap.js",
+ "src/sources/militaryTileGeometry.js",
+ "src/sources/vectorTiles.js",
+ "src/sources/phaseTiming.js",
+ "src/layers/traffic/roadModes.js",
+ "src/data/cameraArrival.js",
+ "src/layers/alpr/floors.js",
+ "src/data/militaryNames.js",
+ "src/sources/requestDeadline.js",
+ "src/data/local_data/osm_military_names/names.json",
+ "src/layers/installations/namedMarkers.js",
+ "src/data/infrastructureOverlayEntry.js",
+ "src/sources/infrastructureData.js",
+ "src/tools/functions.js",
+ "src/voice/actionSchemas.js",
+ "src/view/index.js",
- "src/app/embed.js"
++ "src/app/embed.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
+ ],
+ "external": [
+ "hls.js",
+ "@mapbox/vector-tile",
+ "cesium",
+ "egm96-universal",
+ "mgrs",
+ "pbf",
"satellite.js",
+ "mapillary-js",
"@jtarrio/webrtlsdr"
]
},
@@@ -2874,33 -2561,166 +2717,172 @@@
"src/search/geospatial.js",
"src/search/google.js",
"src/search/http.js",
- "src/search/nominatim.js",
"src/search/placeSearch.js",
- "src/search/presetGeocoder.js",
"src/services/application.js",
- "src/services/groundFloor.js",
"src/services/requests.js",
+ "src/ui/panelRailGeometry.js",
+ "src/ui/radioTunerModel.js",
+ "src/worldFocus.js",
+ "src/layers/flights/records.js",
+ "src/layers/flights/recordPolicy.js",
+ "src/layers/flights/snapshotRenderer.js",
+ "src/layers/flights/modelSpec.js",
+ "src/layers/military/records.js",
+ "src/layers/military/recordPolicy.js",
+ "src/layers/military/snapshotRenderer.js",
+ "src/layers/vessels/records.js",
+ "src/layers/vessels/recordPolicy.js",
+ "src/layers/vessels/snapshotRenderer.js",
+ "src/data/inputOwnership.js",
+ "src/annotations/worldAnnotationRenderer.js",
+ "src/cameraGroundGuard.js",
+ "src/cameraVerbs.js",
+ "src/services/groundFloor.js",
+ "src/data/routeSteps.js",
+ "src/layers/directions/index.js",
+ "src/layers/directions/source.js",
"src/services/terrainHeights.js",
- "src/sources/adsbRecords.js",
- "src/sources/capability.js",
- "src/sources/featureGeometry.js",
- "src/sources/featureSource.js",
+ "src/data/terrainHeights.js",
+ "src/data/groundFloor.js",
+ "src/data/directions.js",
+ "src/app/layers/directions.js",
+ "src/search/coordinateGeocoder.js",
+ "src/search/coordinateParser.js",
+ "src/search/presetGeocoder.js",
+ "src/app/localGeojsonServices.js",
+ "src/layers/alpr/records.js",
+ "src/layers/earthquakes/records.js",
+ "src/app/layers/perimeters.js",
+ "src/layers/perimeters/index.js",
+ "src/layers/perimeters/source.js",
+ "src/layers/perimeters/records.js",
+ "src/layers/perimeters/cards.js",
+ "src/layers/perimeters/inciweb.js",
+ "src/layers/cctv/sourcePolicy.js",
+ "src/search/nominatim.js",
+ "src/nominatimGeocode.js",
+ "src/data/regionalModel.js",
"src/sources/httpBody.js",
- "src/sources/militaryTileGeometry.js",
"src/sources/nominatim.js",
- "src/sources/openFreeMap.js",
- "src/sources/overpassFeatures.js",
+ "src/app/layers/transit.js",
+ "src/data/transitFeeds.js",
+ "src/data/transitIcons.js",
+ "src/data/transitPresetStyle.js",
+ "src/layers/transit/controls.js",
+ "src/layers/transit/height.js",
+ "src/layers/transit/index.js",
+ "src/layers/transit/ingestion.js",
+ "src/layers/transit/lifecycle.js",
+ "src/layers/transit/policy.js",
+ "src/layers/transit/queries.js",
+ "src/layers/transit/rendering.js",
+ "src/layers/transit/selection.js",
+ "src/layers/transit/state.js",
+ "src/layers/transit/testing.js",
+ "src/layers/transit/viewport.js",
+ "src/data/cameraSensitivity.js",
+ "src/data/contactPlayback.js",
+ "src/data/contactTrailRenderer.js",
+ "src/data/transitProxy.js",
+ "src/data/gtfsRealtime.js",
+ "src/layers/transit/trails.js",
+ "src/layers/transit/movement.js",
+ "src/layers/transit/qaMetrics.js",
+ "src/layers/transit/source.js",
+ "src/sources/transitHistory.js",
+ "src/sources/featureGeometry.js",
"src/sources/overpassFeaturesRecords.js",
+ "src/sources/overpassFeatures.js",
+ "src/sources/featureSource.js",
"src/sources/overpassRoads.js",
+ "src/layers/weather/index.js",
+ "src/layers/weather/clock.js",
+ "src/layers/weather/rendering.js",
+ "src/layers/weather/shellRendering.js",
+ "src/layers/weather/infraredAlpha.js",
+ "src/layers/weather/infraredImage.js",
+ "src/layers/weather/source.js",
+ "src/layers/weather/imageryOrder.js",
+ "src/layers/weather/imageryHost.js",
+ "src/layers/cyclones/index.js",
+ "src/layers/cyclones/rendering.js",
+ "src/layers/cyclones/labels.js",
+ "src/layers/cyclones/source.js",
+ "src/app/layers/localAdsb.js",
+ "src/layers/localAdsb/index.js",
+ "src/layers/localAdsb/policy.js",
+ "src/layers/localAdsb/card.js",
+ "src/layers/localAdsb/feeds.js",
+ "src/layers/localAdsb/status.js",
+ "src/layers/localAdsb/feedNames.js",
+ "src/layers/localAdsb/motion.js",
+ "src/layers/localAdsb/models.js",
+ "src/layers/localAdsb/enrichment.js",
+ "src/sources/adsbRecords.js",
+ "src/sdr/controller.js",
+ "src/sdr/spectrum.js",
+ "src/sdr/gain.js",
+ "src/sdr/usbDevices.js",
+ "src/data/detection.js",
+ "src/data/detectionRenderDemand.js",
+ "src/data/detectionPresentation.js",
+ "src/data/modelEligibility.js",
+ "src/app/layers/recentImagery.js",
+ "src/layers/recentImagery/index.js",
+ "src/layers/recentImagery/source.js",
+ "src/layers/recentImagery/model.js",
+ "src/layers/recentImagery/catalog.js",
+ "src/layers/recentImagery/rendering.js",
+ "src/layers/recentImagery/thumbnails.js",
+ "src/maps/imageryHost.js",
+ "src/layers/streetLevel/index.js",
+ "src/layers/streetLevel/providers/mapillary/index.js",
+ "src/layers/streetLevel/viewerHost.js",
+ "src/layers/streetLevel/credits.js",
+ "src/layers/streetLevel/cameraFollow.js",
+ "src/layers/streetLevel/marker.js",
+ "src/layers/streetLevel/view.js",
+ "src/layers/streetLevel/uiState.js",
+ "src/layers/streetLevel/groundCast.js",
+ "src/layers/streetLevel/meshSampler.js",
+ "src/layers/streetLevel/pickRouter.js",
+ "src/layers/streetLevel/params.js",
+ "src/layers/streetLevel/registry.js",
+ "src/layers/streetLevel/filter.js",
+ "src/layers/streetLevel/policy.js",
+ "src/layers/streetLevel/state.js",
+ "src/layers/streetLevel/providers/mapillary/policy.js",
+ "src/layers/streetLevel/providers/mapillary/coverage.js",
+ "src/layers/streetLevel/providers/mapillary/sequences.js",
+ "src/layers/streetLevel/glyphs.js",
+ "src/layers/streetLevel/providers/mapillary/decode.js",
+ "src/layers/streetLevel/providers/mapillary/coverageFixture.mjs",
+ "src/layers/streetLevel/tileMath.js",
+ "src/layers/streetLevel/selection.js",
+ "src/layers/streetLevel/providers/mapillary/viewer.js",
+ "src/layers/streetLevel/providers/mapillary/source.js",
+ "src/app/layers/streetLevel.js",
+ "src/layers/alpr/tileRecords.js",
+ "src/sources/capability.js",
+ "src/sources/openFreeMap.js",
+ "src/sources/militaryTileGeometry.js",
+ "src/sources/vectorTiles.js",
"src/sources/phaseTiming.js",
+ "src/layers/traffic/roadModes.js",
+ "src/data/cameraArrival.js",
+ "src/layers/alpr/floors.js",
+ "src/data/militaryNames.js",
"src/sources/requestDeadline.js",
- "src/sources/sourceSlot.js",
- "src/sources/transitHistory.js",
- "src/sources/vectorTiles.js",
- "src/ui/imagerySplit.js",
- "src/ui/panelRailGeometry.js",
- "src/ui/radioTunerModel.js",
- "src/worldFocus.js"
+ "src/data/local_data/osm_military_names/names.json",
+ "src/layers/installations/namedMarkers.js",
+ "src/data/infrastructureOverlayEntry.js",
- "src/sources/infrastructureData.js"
++ "src/sources/infrastructureData.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
"external": [
"hls.js",
@@@ -2996,28 -2809,20 +2971,26 @@@
"src/app/stateChannel.js",
"src/data/cameraArrival.js"
],
- "external": [
- "cesium"
- ]
+ "external": ["cesium"]
},
"ui-share-restoration": {
- "exports": [
- "./ui/share-restoration"
- ],
+ "exports": ["./ui/share-restoration"],
"modules": [
"src/data/installationFeedback.js",
+ "src/data/idSwitches.js",
"src/data/layerState.js",
+ "src/data/layerStateCoordinator.js",
"src/data/layerStateTokenReservations.json",
+ "src/loadingFeedback.js",
+ "src/navigationPolicy.js",
+ "src/ui/shareRestoration.js",
- "src/ui/uiLifetime.js"
++ "src/ui/uiLifetime.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/loadingFeedback.js",
- "src/navigationPolicy.js",
- "src/ui/shareRestoration.js",
- "src/ui/uiLifetime.js"
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
@@@ -3053,36 -2850,27 +3018,39 @@@
"src/ui/visualEffects.js",
"src/ui/visualInput.js",
"src/ui/visualPresets.js",
-- "src/ui/visualSettings.js"
- ],
- "external": [
- "cesium"
- ]
- },
- "ui-panel-chrome": {
- "exports": [
- "./ui/panel-chrome"
- ],
- "modules": [
++ "src/ui/visualSettings.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/panelStackLayout.js",
++ "src/i18n/locales/en/shell.js"
+ ],
+ "external": ["cesium"]
+ },
+ "ui-panel-chrome": {
+ "exports": ["./ui/panel-chrome"],
+ "modules": [
"src/ui/displayPanelScroll.js",
+ "src/ui/radioPanelPlacement.js",
+ "src/panelStackLayout.js",
"src/ui/leftPanelRail.js",
"src/ui/panelChrome.js",
"src/ui/panelDisclosure.js",
"src/ui/panelLayoutController.js",
"src/ui/panelMeasurement.js",
"src/ui/panelPositionControls.js",
+ "src/ui/panelResize.js",
"src/ui/panelRailGeometry.js",
"src/ui/panelRails.js",
- "src/ui/radioPanelPlacement.js",
"src/ui/rightPanelRail.js",
-- "src/ui/uiLifetime.js"
++ "src/ui/uiLifetime.js",
++ "src/i18n/index.js",
++ "src/i18n/locale.js",
++ "src/i18n/locales/en/cockpit.js",
++ "src/i18n/locales/en/layers.js",
++ "src/i18n/locales/en/setup.js",
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
@@@ -3212,19 -2982,18 +3162,24 @@@
"external": []
},
"voice-session-controls": {
- "exports": [
- "./voice/session-controls"
- ],
+ "exports": ["./voice/session-controls"],
"modules": [
+ "src/voice/sessionCommands.js",
+ "src/voice/session.js",
+ "src/voice/control.js",
+ "src/voice/voiceCard.js",
+ "src/voice/voiceCardPresentation.js",
+ "src/voice/resultDisplay.js",
+ "src/voice/referents.js",
+ "src/voice/layerManifest.js",
+ "src/voice/speech.js",
- "src/voice/pointerReticle.js"
++ "src/voice/pointerReticle.js",
+ "src/i18n/index.js",
+ "src/i18n/locale.js",
+ "src/i18n/locales/en/cockpit.js",
+ "src/i18n/locales/en/layers.js",
+ "src/i18n/locales/en/setup.js",
- "src/i18n/locales/en/shell.js",
- "src/voice/control.js",
- "src/voice/session.js",
- "src/voice/sessionCommands.js"
++ "src/i18n/locales/en/shell.js"
],
"external": []
},
diff --cc server/standalone/vite.config.js
index ae4a62043,a14292597..58a6e7c0a
--- a/server/standalone/vite.config.js
+++ b/server/standalone/vite.config.js
@@@ -13,13 -16,17 +16,19 @@@ export default defineConfig(({ command
if (process.env[key] === undefined) process.env[key] = value;
}
return createBrowserViteConfig({
- plugins: [...localProviderPlugins(), apiNotFoundPlugin()],
+ plugins: [
+ ...localProviderPlugins({ realtime: { tools: standaloneVoiceTools() } }),
+ localMcpPlugin(),
+ apiNotFoundPlugin(),
+ ],
googleApiKey: process.env.GOOGLE_MAPS_API_KEY,
cesiumToken: process.env.CESIUM_ION_TOKEN,
+ defaultLocale: process.env.GEV_DEFAULT_LOCALE ?? '',
+ secondaryLocale: process.env.GEV_SECONDARY_LOCALE ?? '',
+ mapillaryToken: process.env.MAPILLARY_CLIENT_TOKEN,
host: process.env.HOST,
port: process.env.PORT,
+ allowedHosts: resolveAllowedHosts(process.env.GEV_ALLOWED_HOSTS),
command,
});
});
diff --cc src/app/scene.js
index 986ad7bc7,b98a28914..c96099dea
--- a/src/app/scene.js
+++ b/src/app/scene.js
@@@ -60,11 -60,12 +61,12 @@@ export async function createApplication
registerDataCredits(viewer, credits);
configureCreditKeyboardAccess(document);
loaderStatus.textContent =
- googleApiKey || cesiumToken
+ googleApiKey || googleTokens || cesiumToken
- ? 'Loading Google 3D Tiles...'
- : 'Loading the keyless globe...';
+ ? t('shell.loading.status.tilesGoogle')
+ : t('shell.loading.status.tilesKeyless');
const photoreal = await loadPhotorealisticTileset(Cesium, {
googleApiKey,
+ googleTokens,
cesiumToken,
});
const tileset = photoreal.tileset;
diff --cc src/i18n/locales/en/cockpit.js
index 91a551268,000000000..89ebbeba0
mode 100644,000000..100644
--- a/src/i18n/locales/en/cockpit.js
+++ b/src/i18n/locales/en/cockpit.js
@@@ -1,560 -1,0 +1,562 @@@
+// English catalog — cockpit namespace (phase-1 seed).
+//
+// Owns the first-person cockpit HUD, its Contact summary, and the briefing
+// carousel. Keys are namespace-relative; the registry prefixes them with
+// `cockpit.`.
+export const NAMESPACE = 'cockpit';
+
+export default {
+ // index.html #cockpit-hud section aria-label
+ 'hud.sectionLabel': 'Aircraft cockpit view',
+ // index.html #map-view-switch button label
+ 'exit.label': 'EXIT COCKPIT',
+ // index.html .cockpit-readout-label
+ 'readout.groundSpeed': 'GROUND SPEED',
+ 'readout.altitude': 'ALTITUDE',
+ // index.html .cockpit-context-kicker / #cockpit-context-subject (initial)
+ 'context.kicker': 'CONTACT',
+ 'context.subjectWindow': 'CONTACTS · 250 KM',
+ // index.html #cockpit-brief-kicker / #cockpit-brief-subtitle (initial)
+ 'brief.kicker': 'LIVE SIGNALS',
+ 'brief.subtitle': 'OBSERVED / MAPPED PINGS',
+ // index.html #cockpit-vision-current small label
+ 'vision.current': 'CURRENT',
+ // index.html #cockpit-radio-station (initial)
+ 'radio.station.ready': 'READY',
+
+ // ── Phase-2 static markup extraction (index.html), appended ──────────────
+ // The shell worker owns ALL index.html static markup in phase 2
+ // (docs/TRANSLATORS.md cross-surface rule); these keys land here because
+ // src/ui.js and src/hud.js own the surfaces' runtime half in phase 3.
+
+ // index.html #style-indicator / #clean-view-exit (visual-style chrome)
+ 'presets.activeStyleLabel': 'ACTIVE STYLE',
+ 'display.cleanViewExitTitle': 'Return UI controls',
+ 'display.cleanViewExitLabel': 'EXIT CLEAN VIEW',
+
+ // index.html control panel — Visual Presets dock tray
+ 'presets.toggleAriaLabel': 'Expand Visual Presets',
+ // Key-only: the .panel-title node shares its element with the dock-label-icon
+ // span, so a data-i18n write would wipe the icon; phase 3 wires this via t().
+ 'presets.title': 'VISUAL PRESETS',
+ 'presets.pinAriaLabel': 'Pin visual presets',
+ 'presets.pinTitle': 'Keep visual presets open',
+ 'presets.styleNormalTitle': 'Show the globe without a visual filter.',
+ 'presets.styleNormalLabel': 'Normal',
+ 'presets.styleCrtTitle':
+ 'Emulate a green phosphor CRT with scanlines and screen curvature.',
+ 'presets.styleCrtLabel': 'CRT',
+ 'presets.styleNvgTitle':
+ 'Simulate night-vision goggles with green intensification and a tube vignette.',
+ 'presets.styleNvgLabel': 'NVG',
+ 'presets.styleFlirTitle':
+ 'Simulate FLIR-style thermal contrast. Turn up Ironbow for color.',
+ 'presets.styleFlirLabel': 'FLIR',
+ 'presets.styleAnimeTitle':
+ 'Apply bright cel-shaded color and illustrated outlines.',
+ 'presets.styleAnimeLabel': 'Anime',
+ 'presets.styleNoirTitle': 'Apply high-contrast monochrome film-noir grading.',
+ 'presets.styleNoirLabel': 'Noir',
+ 'presets.styleSnowTitle':
+ 'Add a cold, snowy whiteout treatment to the scene.',
+ 'presets.styleSnowLabel': 'Snow',
+ // Key-only: the static span text is pinned verbatim by mapStackChips.test.mjs
+ // (id="map-source-label">MAP SOURCE<), so no attribute can be added without
+ // touching that test; phase 3 owns the swap.
+ 'presets.mapSourceLabel': 'MAP SOURCE',
+ // Key-only: the chip-row tag is pinned literally by mapStackChips.test.mjs.
+ 'presets.mapSourceChipsAriaLabel': 'Map source',
+ 'presets.miniStyleLabel': 'Style',
+
+ // index.html #pp-toggles DISPLAY rail
+ // Key-only: .pp-header-label text is pinned verbatim by panelStackLayout.test.mjs.
+ 'display.title': 'DISPLAY',
+ 'display.collapseTitle': 'Collapse panel',
+ 'display.hudToggleTitle': 'Intelligence HUD (H)',
+ 'display.hudLayoutLabel': 'Layout',
+ 'display.hudLayoutAriaLabel': 'HUD layout',
+ 'display.hudLayoutTactical': 'Tactical',
+ 'display.hudLayoutOperator': 'Operator',
+ 'display.hudLayoutMinimal': 'Minimal',
+ 'display.detectionToggleTitle': 'Detection Overlay (D)',
+ 'display.detectionAriaLabel': 'Detection overlay',
+ 'display.detectionLabel': 'DETECT',
+ 'display.densityLabel': 'Density',
+ 'display.densityAriaLabel': 'Detection label density',
+ 'display.allocationLabel': 'Allocation',
+ 'display.allocationAriaLabel': 'Detection label allocation',
+ 'display.allocationElastic': 'Elastic',
+ 'display.allocationWeighted': 'Weighted',
+ 'display.fadeLabel': 'Fade',
+ 'display.fadeAriaLabel': 'Detection fade distance',
+ 'display.fadeTitle':
+ 'World-overlay fade distance outside the keyhole as a percentage of its radius',
+ 'display.outsideLabel': 'Outside',
+ 'display.outsideAriaLabel': 'Detection opacity outside the keyhole',
+ 'display.outsideTitle':
+ 'World-overlay label and card opacity beyond the fade distance',
+ 'display.parametersTitle': 'PARAMETERS',
+ 'display.parametersCollapseTitle': 'Collapse panel',
+ 'display.modelsToggleTitle':
+ '3D aircraft — flat icons zoomed out, 3D models up close',
+ 'display.modelsLabel': 'Models',
+ 'display.modelsCoverageAriaLabel': '3D model coverage',
+ 'display.modelsModeProximity': 'Proximity',
+ 'display.modelsModeAll': 'All',
+ 'display.scopeToggleTitle': 'Scope — the circular viewport mask',
+ 'display.scopeLabel': 'Scope',
+ 'display.featherLabel': 'Feather',
+ 'display.featherTitle':
+ 'Scope edge feather as a percentage of the keyhole radius',
+ 'display.celestialToggleTitle': 'Celestial ring — reveal the full globe',
+ 'display.celestialLabel': 'Celestial',
+ 'display.cleanViewToggleTitle': 'Hide UI chrome',
+ 'display.cleanViewLabel': 'Clean UI',
+ 'display.bloomToggleTitle': 'Bloom / Glow',
+ 'display.bloomLabel': 'Bloom',
+ 'display.sharpenToggleTitle': 'Sharpening',
+ 'display.sharpenLabel': 'Sharpen',
+
+ // index.html location bar (dock locations tray; ui.js owns the runtime half)
+ // Key-only: .location-toolbar-label shares its element with dock-label-icon.
+ 'location.toolbarLabel': 'LOCATION',
+ 'location.collapseTitle': 'Collapse panel',
+ 'location.pinAriaLabel': 'Pin location tray',
+ 'location.pinTitle': 'Keep location tray open',
+ // Initial mini-status values; ui.js rewrites both once a place resolves.
+ 'location.miniCityInitial': '📍 Location: --',
+ 'location.miniPoiInitial': 'Landmark: --',
+ 'location.searchToggleTitle': 'Search any location',
+ 'location.searchPlaceholder': 'Search any location...',
+
+ // index.html cockpit HUD statics
+ 'hud.level': 'LEVEL',
+ 'hud.routeDirectionAriaLabel': 'Estimated destination direction',
+ // Initial idle readout; ui.js rewrites it with a live bearing.
+ 'hud.routeDirectionIdle': 'DEST ---°',
+ 'hud.visorPlane': 'OPTICAL PLANE · 01',
+ 'hud.visorLock': 'VISOR LOCK · ACTIVE',
+ 'hud.firstPerson': 'FIRST PERSON',
+ // Initial meta line; ui.js rewrites it from live track state.
+ 'hud.aircraftMetaInitial': 'LIVE TRACK · COURSE ALIGNED',
+ 'hud.visionGroupAriaLabel': 'Cockpit vision style',
+ 'hud.compassAriaLabel': 'Current aircraft heading',
+ 'readout.rimGroundSpeed': 'GROUND SPEED · KTS',
+ 'readout.rimAltitude': 'ALTITUDE · FT',
+
+ // index.html cockpit vision controls
+ 'vision.previousLabel': 'PREV',
+ 'vision.previousAriaLabel': 'Previous cockpit vision style',
+ 'vision.previousTitle': 'Previous vision style',
+ // The NORMAL token inside these two is the style name; phase 3 splits the
+ // dynamic token out when the runtime half is extracted.
+ 'vision.currentAriaLabel':
+ 'Current cockpit vision style: NORMAL. Activate for next style.',
+ 'vision.currentTitle': 'Current style: NORMAL — click for next',
+ 'vision.nextLabel': 'NEXT',
+ 'vision.nextAriaLabel': 'Next cockpit vision style',
+ 'vision.nextTitle': 'Next vision style',
+
+ // index.html view switcher
+ 'exit.navAriaLabel': 'View switcher',
+ 'exit.resetAriaLabel': 'Reset cockpit to full globe view',
+ 'exit.resetTitle': 'Exit cockpit and return to full globe view',
+ 'exit.resetLabel': 'RESET',
+ 'exit.ariaLabel': 'Exit cockpit view',
+ 'exit.title': 'Exit cockpit view',
+
+ // index.html cockpit route card
+ 'route.cardAriaLabel': 'Estimated flight plan',
+ 'route.kicker': 'ESTIMATED FLIGHT PLAN',
+ 'route.statusUnavailable': 'ROUTE DATA UNAVAILABLE',
+ 'route.fromLabel': 'FROM',
+ 'route.toLabel': 'TO',
+ 'route.unknownEndpoint': 'UNKNOWN',
+
+ // index.html cockpit briefing carousel
+ // (brief.kicker 'LIVE SIGNALS' is seeded above but is KEY-ONLY: #cockpit-brief-kicker
+ // shares its element with the live-dot <i>, so no data-i18n attribute can target it.)
+ 'brief.carouselAriaLabel': 'Cockpit briefing carousel',
+ 'brief.actionsAriaLabel': 'Cockpit briefing controls',
+ 'brief.previousAriaLabel': 'Previous briefing page',
+ 'brief.previousTitle': 'Previous briefing page',
+ 'brief.nextAriaLabel': 'Next briefing page',
+ 'brief.nextTitle': 'Next briefing page',
+ // Title is static prose; the visible label + aria-label are CYCLE ON/OFF
+ // states that belong to the phase-3 runtime extraction.
+ 'brief.autoTitle':
+ 'Cycle briefing pages automatically every 9 seconds (Signals → News → Local). Pauses while you hover or focus the panel. Live signal data refreshes continuously either way.',
+ 'brief.collapseAriaLabel': 'Collapse cockpit briefing panel',
+ 'brief.collapseTitle': 'Collapse briefing panel',
+ 'brief.signalsAriaLabel': 'Live signals',
+ 'brief.newsAriaLabel': 'Latest regional news',
+ 'brief.localAriaLabel': 'Location-based information',
+ 'brief.newsAcquiring': 'ACQUIRING REGIONAL NEWS',
+ 'brief.localResolving': 'RESOLVING REGION',
+ 'brief.labelTemp': 'TEMP',
+ 'brief.labelWind': 'WIND',
+ 'brief.labelSky': 'SKY',
+ 'brief.labelPrecip': 'PRECIP',
+ 'brief.sourceNote': 'SOURCE-BACKED EVENTS · NO SYNTHETIC NEWS',
+ 'brief.tabSignalsAriaLabel': 'Show Live Signals',
+ 'brief.tabNewsAriaLabel': 'Show Regional News',
+ 'brief.tabLocalAriaLabel': 'Show Local Info',
+
+ // index.html cockpit context panel (right-rail Global Context included)
+ 'context.panelAriaLabel': 'Contact cockpit summary',
+ 'context.navAriaLabel': 'Contact navigation',
+ 'context.previousAriaLabel':
+ 'Previous — prior visited contact in the 250 km window',
+ 'context.previousTitle':
+ 'Previous — prior visited contact in the 250 km window',
+ 'context.nextAriaLabel':
+ 'Next — nearest unvisited contact in the 250 km window',
+ 'context.nextTitle': 'Next — nearest unvisited contact in the 250 km window',
+ 'context.toggleAriaLabel': 'Collapse Contact panel',
+ 'context.toggleTitle': 'Collapse contact panel',
+ 'context.qualifier': 'CONTEXT ONLY',
+ 'context.cohortsAriaLabel': 'Nearby cohort counts',
+ 'context.nearestLabel': 'NEAREST OBSERVED / MAPPED',
+ 'context.nearestEmpty': 'NO AVAILABLE EXAMPLE',
+ 'context.uncertaintyNote': 'AVAILABLE INPUTS ONLY · NOT AN ALL-CLEAR',
+ 'context.weatherEnableAriaLabel': 'Enable cockpit weather effects',
+ 'context.weatherEnableTitle': 'Enable cockpit weather effects',
+ 'context.panelTitle': 'CONTEXT',
+ 'context.collapseTitle': 'Expand panel',
+ 'context.modesAriaLabel': 'Context mode',
+ 'context.contactsTabAriaLabel': 'CONTACTS',
+ 'context.contactsTabTitle':
+ 'Cycles the nearest contacts of whatever type you select — planes, vessels, installations. Satellites track independently.',
+ 'context.contactsTabLabel': 'CONTACTS',
+ 'context.missionsTabLabel': 'SPACE MISSIONS',
+ 'context.standbyTitle': 'SELECT CONTEXT',
+ 'context.actionsAriaLabel': 'Contact Context actions',
+ 'context.cockpitEntryLabel': 'COCKPIT',
+ 'context.searchNearbyLabel': 'SEARCH NEARBY SITES',
+ 'context.tr3bAriaLabel': 'Reclassify tracked contact as TR-3B',
+ 'context.tr3bTitle': 'Reclassify as TR-3B',
+ 'context.awarenessOffTitle': 'CONTACTS CONTEXT OFF',
+ 'context.awarenessOffHint':
+ 'SELECT CONTACTS TO LOAD OBSERVED / MAPPED PROXIMITY',
+ 'context.rosterAriaLabel': 'Available Space Missions',
+ 'context.rosterTitle': 'AVAILABLE MISSIONS',
+ 'context.rosterHint': 'SELECT A MISSION TO INSPECT',
+ 'context.rosterLoading': 'LOADING 30-DAY MISSION INDEX',
+ 'context.radioToggleAriaLabel': 'Open compact Radio controls',
+ 'context.radioToggleTitle': 'Open compact Radio controls',
+ 'context.radioMiniGroupAriaLabel': 'Compact Radio controls',
+ 'context.radioMiniTitle': 'RADIO',
+ 'context.radioMiniReady': 'RADIO READY',
+ 'context.radioDetailsAriaLabel': 'Open detailed Radio controls',
+ 'context.radioDetailsTitle': 'Open detailed Radio controls',
+ 'context.radioCloseAriaLabel': 'Close compact Radio controls',
+ 'context.radioCloseTitle': 'Close compact Radio controls',
+ 'context.radioMiniEnable': 'ENABLE',
+ 'context.radioMiniPrevAriaLabel': 'Previous filtered radio station',
+ 'context.radioMiniPrevTitle': 'Previous station',
+ 'context.radioMiniPlayAriaLabel': 'Play selected radio station',
+ 'context.radioMiniPlayTitle': 'Play',
+ 'context.radioMiniNextAriaLabel': 'Next filtered radio station',
+ 'context.radioMiniNextTitle': 'Next station',
+ 'context.radioMiniVolumeLabel': 'VOLUME',
+ 'context.radioMiniVolumeAriaLabel': 'Compact Radio volume',
+
+ // index.html cockpit utility controls + compact radio popover
+ 'utility.controlsAriaLabel': 'Cockpit display and Radio controls',
+ 'utility.displayLabel': 'DISPLAY',
+ 'utility.radioLabel': 'RADIO',
+ 'utility.displayToggleAriaLabel': 'Expand Cockpit display options',
+ 'utility.displayToggleTitle': 'Expand Cockpit display options',
+ 'utility.displayPanelAriaLabel': 'Cockpit display options',
+ 'utility.radioToggleAriaLabel': 'Expand Cockpit Radio controls',
+ 'utility.radioToggleTitle': 'Expand Cockpit Radio controls',
+ 'utility.radioPanelAriaLabel': 'Cockpit compact Radio controls',
+ 'radio.enable': 'ENABLE',
+ 'radio.prevAriaLabel': 'Previous filtered radio station',
+ 'radio.playAriaLabel': 'Play selected radio station',
+ 'radio.nextAriaLabel': 'Next filtered radio station',
+ 'radio.volumeLabel': 'VOLUME',
+ 'radio.volumeAriaLabel': 'Cockpit Radio volume',
+
+ // ── Phase-3 runtime extraction (src/ui.js), appended ─────────────────────
+ // Values stay byte-identical to the previous English literals; existing
+ // tests pin many of them under the default locale.
+
+ // _syncPanelCollapseButton(): composed panel collapse titles. {name} is the
+ // panel's own (already localized) .panel-title text.
+ 'panel.expandTitle': 'Expand {name}',
+ 'panel.collapseTitle': 'Collapse {name}',
+ // Fallback when a panel ships no .panel-title/.pp-header-label node.
+ 'panel.fallbackName': 'panel',
+ // Radio panel collapse state; the expand state reuses the layers.radio.*
+ // keys seeded on the static button in phase 2.
+ 'panel.radioCollapseTitle': 'Collapse Radio',
+ 'panel.radioCollapseAria': 'Collapse Radio section',
+ // _updateLocationMiniStatus(): runtime rewrite of the collapsed LOCATION
+ // readout's single-segment search fallback (initial-state keys
+ // location.miniCityInitial/miniPoiInitial were seeded in phase 2).
+ 'location.miniSearchedPlaceholder': 'Searched location',
+
+ // ── Phase-3 runtime extraction batch 2: cockpit + Context renderers ───────
+
+ // syncWeatherToggle(): state-sibling keys for the runtime ON/OFF rewrite
+ // (context.weatherEnableAriaLabel was seeded on the static button).
+ 'context.weatherDisableAriaLabel': 'Disable cockpit weather effects',
+ 'context.weatherStateOn': 'ON',
+ 'context.weatherStateOff': 'OFF',
+ // syncTr3bToggle(): converted-state title sibling of context.tr3bTitle.
+ 'context.tr3bRestoreTitle': 'Restore real aircraft',
+ // setVisionMode(): the style token is dynamic, so the sentence is split out
+ // of the seeded vision.currentAriaLabel/currentTitle (whose values pin the
+ // NORMAL default) into {style} templates.
+ 'vision.styleNameNightVision': 'Night vision',
+ 'vision.styleNameThermal': 'Thermal',
++ 'vision.styleNameAnime': 'Anime',
+ 'vision.styleNameNoir': 'Noir',
++ 'vision.styleNameSnow': 'Snow',
+ 'vision.currentAriaTemplate':
+ 'Current cockpit vision style: {style}. Activate for next style.',
+ 'vision.currentTitleTemplate': 'Current style: {style} — click for next',
+
+ // Cockpit signal stream (pushCockpitSignal / renderCockpitSignals).
+ 'signal.trackAcquired': 'TRACK ACQUIRED',
+ 'signal.trackDetail': '{label} · COURSE {heading}°',
+ 'signal.selectFlightAria': 'Select flight {title}',
+ 'signal.contextStandby': 'CONTEXT STANDBY',
+ 'signal.contextStandbyHint': 'ENABLE GLOBAL CONTEXT FOR PROXIMITY PINGS',
+ 'signal.contactLostTitle': 'CONTACT LOST · {subject}',
+ 'signal.contactLostDetail':
+ 'SUBJECT LEFT ITS FEED · READOUT HOLDING LAST KNOWN',
+ 'signal.classMilitary': 'MILITARY FLIGHT',
+ 'signal.classCommercial': 'COMMERCIAL FLIGHT',
+ 'signal.contactCurrent': '{aircraftClass} · CURRENT',
+ 'signal.contactRange': '{aircraftClass} · {distance}',
+ 'signal.distanceUnknown': 'DISTANCE UNKNOWN',
+ 'signal.inputsUnknown': {
+ one: '{count} INPUT UNKNOWN',
+ other: '{count} INPUTS UNKNOWN',
+ },
+ 'signal.sourceStatusUnavailable': 'SOURCE STATUS UNAVAILABLE',
+
+ // updateHud(): callsign fallback + the composed aircraft meta line (each
+ // feed state is its own key so no state can leak English later).
+ 'hud.fallbackCallsign': 'AIRCRAFT',
+ 'hud.metaClassMilitary': 'MILITARY',
+ 'hud.metaClassCommercial': 'COMMERCIAL',
+ 'hud.metaFeedAcquiringSurface': 'ACQUIRING SURFACE',
+ 'hud.metaFeedSurfaceFallback': 'SURFACE FALLBACK',
+ 'hud.metaFeedStale': 'STALE FEED',
+ 'hud.metaFeedLive': 'LIVE TRACK',
+ 'hud.aircraftMetaTemplate': '{aircraftClass} · {feedState} · COURSE ALIGNED',
+
+ // updateRoute(): runtime state siblings of the seeded route keys.
+ 'route.statusArrowEstimated': 'ARROW · ESTIMATED DIRECTION',
+ 'route.directionLabel': 'DEST {bearing}',
+
+ // updateContext(): uncertainty/nearest/bearing readout states.
+ 'context.uncertaintyContactLost':
+ 'CONTACT LOST · LAST KNOWN READOUT · NOT AN ALL-CLEAR',
+ 'context.uncertaintyInputsUnknown': {
+ one: '{count} INPUT UNKNOWN · NOT AN ALL-CLEAR',
+ other: '{count} INPUTS UNKNOWN · NOT AN ALL-CLEAR',
+ },
+ 'context.uncertaintyInputsCurrent':
+ 'AVAILABLE INPUTS CURRENT · NOT AN ALL-CLEAR',
+ 'context.nearestTemplate': '{cohort} · {contact}',
+ 'context.nearestUnavailableAria': '{cohort}, Unavailable',
+ 'context.bearingNone': 'BRG —',
+ 'context.bearingAhead': 'AHEAD',
+ 'context.bearingSide': '{side} {angle}',
+ 'context.sideLeft': 'L',
+ 'context.sideRight': 'R',
+
+ // setContextCollapsed()/setSignalCollapsed(): expand-state siblings.
+ 'context.toggleExpandAriaLabel': 'Expand Contact panel',
+ 'context.toggleExpandTitle': 'Expand contact panel',
+ 'brief.expandAriaLabel': 'Expand cockpit briefing panel',
+ 'brief.expandTitle': 'Expand briefing panel',
+
+ // setBriefAutoRotate(): cycle toggle states + the ON-state help text (the
+ // OFF-state help is the seeded brief.autoTitle).
+ 'brief.autoOn': 'CYCLE ON',
+ 'brief.autoOff': 'CYCLE OFF',
+ 'brief.autoTitleOn':
+ 'Stop automatic page cycling. Previous, Next, and the SIG/NEWS/LOCAL tabs stay available.',
+
+ // Briefing carousel pages (kicker/subtitle/source per page; the news/local
+ // source lines are provider attribution and stay English).
+ 'brief.kickerNews': 'REGIONAL NEWS',
+ 'brief.kickerLocal': 'LOCAL INFO',
+ 'brief.subtitleNews': 'LATEST LOCATION-MATCHED REPORTING',
+ 'brief.subtitleLocal': 'PLACE / CONDITIONS / POSITION',
+
+ // Local position + regional brief status states.
+ 'brief.positionUnavailable': 'POSITION UNAVAILABLE',
+ 'brief.newsUnavailable': 'REGIONAL NEWS UNAVAILABLE',
+ 'brief.regionUnavailable': 'REGION UNAVAILABLE',
+ 'brief.newsEmpty': 'NO RECENT LOCATION MATCHES',
+
+ // renderRegionalBrief(): article metadata, cloud readout, and age chips.
+ 'brief.metadataSourceFallback': 'SOURCE',
+ 'brief.articleMetaTemplate': '{domain} · {age}',
+ 'brief.newsSourceLine': '{source} · LOCATION QUERY',
+ 'brief.age.timeUnknown': 'TIME UNKNOWN',
+ 'brief.age.minutes': '{count}M AGO',
+ 'brief.age.hours': '{count}H AGO',
+ 'brief.age.days': '{count}D AGO',
+ 'brief.wind.dirUnknown': 'DIR UNKNOWN',
+ 'brief.cloudTemplate': 'CLOUD {pct}%',
+ 'brief.cloudUnknown': 'CLOUD UNKNOWN',
+
+ // ── Phase-3 runtime extraction batch 3: toasts, loading helpers, map tray ─
+
+ // Panel-chrome + share/location toasts.
+ 'panel.layoutResetToast':
+ 'Panel layout updated — positions reset to new defaults',
+ 'share.toastCopied': 'Link copied!',
+ 'share.toastCopyFailed': 'Copy failed',
+ 'location.toastNotFound': 'Location not found',
+ 'location.toastSearchFailed': 'Search failed',
+ 'location.toastFlyToPoiFirst': 'Fly to a POI first',
+ 'actions.clearLayersBusyAria': 'Clearing selected data layers',
+ 'actions.clearLayersFailedToast': 'Selected data layers could not be cleared',
+
+ // Global status chip notices (_handleShareTrackingRestoreStatus).
+ 'status.acquiring': 'ACQUIRING',
+ 'status.subjectFallback': 'entity',
+ 'status.sharedSubjectDetail': 'SHARED {subject}',
+ 'status.sharedFollowExpired': 'Shared {subject} follow expired',
+ 'status.sharedRestoreFailed':
+ 'Shared {subject} could not be restored — feed unavailable',
+ 'status.sharedUnavailable': 'Shared {subject} is unavailable',
+
+ // Context mode user-facing action failures.
+ 'context.modeContext': 'Context',
+ 'context.modeSpaceMissions': 'Space Missions',
+ 'context.toastStartBlocked':
+ '{mode} could not start because another layer did not stop cleanly',
+ 'context.toastTransitionFailedContacts':
+ 'Contacts could not complete the requested transition; try again',
+ 'context.toastTransitionFailedMissions':
+ 'Space Missions could not complete the requested transition; try again',
+ 'context.toastInstallationsRefreshFailed':
+ 'Nearby installations could not be refreshed; try again',
+ 'context.toastRestoreFailed':
+ 'Context could not restore every layer; try again',
+ 'context.toastZoomToSearch': 'Zoom in to search mapped installations',
+ 'context.toastInstallationsRefreshed': 'Nearby installations refreshed',
+ 'context.toastLayerUnavailable':
+ 'That layer is unavailable in the current Context mode',
+ 'context.actionStart': 'start',
+ 'context.actionStop': 'stop',
+ 'context.toastLayerLifecycleFailed': '{layerId} could not {action} cleanly',
+ 'radio.toastLifecycleFailed': 'Radio could not {action} cleanly',
+
+ // CCTV sync chip captions + calibration/availability toasts.
+ 'cctv.syncLoadingFrames': 'loading frames',
+ 'cctv.syncGridReady': 'camera grid ready',
+ 'cctv.toastCalibrationSaved': 'CCTV calibration saved',
+ 'cctv.toastCalibrationReset': 'CCTV calibration reset',
+ 'cctv.toastLayerUnavailable': 'CCTV layer unavailable',
+
+ // _renderMapStackState(): status chip fallback when no stack label resolves
+ // (stack names themselves are keep-English provider/stack ids).
+ 'presets.mapStackFallback': 'MAP',
+
+ // ── Phase-3 runtime extraction batch 4: awareness / CCTV / Radio panels ───
+ // (radio.* and cctv.* state values that layers.js already seeds are reused
+ // cross-namespace; these are the runtime-only siblings and compositions.)
+
+ // _applyRuntimeStaticHeaderText(): the key-only standby description span
+ // (both mode descriptions in one span split by a literal <br> in phase 2).
+ 'context.standbyContactsDesc': 'CONTACTS — nearest planes · vessels · sites',
+ 'context.standbyMissionsDesc': 'SPACE MISSIONS — launches & orbital assets',
+ // _syncContextRadioLauncherState(): close-state sibling of the seeded
+ // context.radioToggleAriaLabel ('Open compact Radio controls').
+ 'context.radioToggleCloseAriaLabel': 'Close compact Radio controls',
+ 'context.toastMissionsCancelRestoreFailed':
+ 'Space Missions cancellation could not restore the previous layer state',
+ // Cockpit utility disclosures: collapse-state siblings of the seeded
+ // utility.*ToggleAriaLabel expand keys.
+ 'utility.displayToggleCollapseAriaLabel': 'Collapse Cockpit display options',
+ 'utility.radioToggleCollapseAriaLabel': 'Collapse Cockpit Radio controls',
+
+ // Radio panel runtime states (state-sibling keys so no state can leak
+ // English later; lifecycle enum labels reuse layers.status.*).
+ 'radio.stateSync': 'SYNC',
+ 'radio.tunerCategoryBand': '{category} BAND',
+ 'radio.tunerNoStations': 'NO STATIONS',
+ 'radio.tunerStationAria': '{name}, station {index} of {total}',
+ 'radio.tunerNoStationAria': 'No station available',
+ 'radio.tunerOffAir': 'OFF AIR',
+ 'radio.tunerStationUnavailable': 'STATION UNAVAILABLE',
+ 'radio.actionPlay': 'Play',
+ 'radio.actionPause': 'Pause',
+ 'radio.actionResume': 'Resume',
+ 'radio.targetSelected': 'selected',
+ 'radio.targetNearest': 'nearest',
+ 'radio.playStateAria': '{action} {target} radio station',
+ 'radio.miniStateUncertain': 'RADIO STATE UNCERTAIN',
+ 'radio.miniSyncingDirectory': 'SYNCING DIRECTORY',
+ 'radio.stationSyncing': 'SYNCING',
+ 'radio.stationFallback': 'station',
+ 'radio.playbackReadyFallback': 'Ready',
+
+ // CCTV panel runtime states (layers.cctv.* seeded keys reused where they
+ // match; these are the runtime-only compositions and flipped states).
+ 'cctv.coverageViewshedOn': 'VIEWSHED ON',
+ 'cctv.frameLoading': 'FRAME · LOADING',
+ 'cctv.frameUnavailable': 'FRAME · UNAVAILABLE',
+ 'cctv.calChipEdited': 'CAL · EDITED (UNSAVED)',
+ 'cctv.calChipTemplate': 'CAL · {badge}',
+ 'cctv.calBadgeCalibrated': 'CALIBRATED',
+ 'cctv.calBadgeCurated': 'CURATED',
+ 'cctv.calBadgeRawPrior': 'RAW PRIOR',
+ 'cctv.metaProjectionMonitor': 'MONITOR',
+ 'cctv.metaProjectionOff': 'OFF',
+ 'cctv.metaTemplate':
+ '{city} · HDG {heading} · FOV {fov} · RANGE {range}m · {projection}{calBadge} · {provider}{status}',
+ 'cctv.metaCamerasClick': {
+ one: '{count} camera loaded · click a camera to activate',
+ other: '{count} cameras loaded · click a camera to activate',
+ },
+ 'cctv.metaCamerasEnable': {
+ one: '{count} camera loaded · enable CCTV to activate',
+ other: '{count} cameras loaded · enable CCTV to activate',
+ },
+ 'cctv.summaryNoneAvailable': 'No summary available.',
+
+ // ── Phase-3 runtime extraction batch 5: remainder + hud.js ────────────────
+
+ // _setCelestialRingEnabled(): unsupported-style title sibling of the seeded
+ // display.celestialToggleTitle.
+ 'display.celestialUnavailableTitle':
+ 'Celestial ring — available in Normal style',
+ // _updateDetectionButton(): density-profile labels (display.detectionLabel
+ // 'DETECT' was seeded on the static button) + composed aria.
+ 'display.detectionAriaTemplate': 'Detection overlay: {mode}',
+ 'display.detectionAriaOff': 'Detection overlay: off',
+ 'display.detectionLabelSparse': 'SPARSE',
+ 'display.detectionLabelBalanced': 'BALANCED',
+ 'display.detectionLabelDense': 'DENSE',
+ // Globe-reset buttons: idle/working aria states (cockpit variant sibling).
+ 'hud.resetGlobeAria': 'Reset to full globe view',
+ 'hud.resetGlobeCockpitAria': 'Reset cockpit to full globe view',
+ 'hud.resettingGlobeAria': 'Resetting to full globe view',
+ 'hud.resettingGlobeCockpitAria': 'Resetting cockpit to full globe view',
+ // _initOrbit(): indicator caption after the orbit glyph.
+ 'location.orbitLabel': 'ORBIT',
+ // Intel HUD (src/hud.js): summary caption, idle placeholder, REC indicator.
+ // Classification banners, terse instrument readout codes (MGRS/GSD/NIIRS/
+ // ALT/COLL/ONA/BAND/BITS/LVL), and the AI summary line stay keep-English.
+ 'hud.summaryLabel': 'SUMMARY',
+ 'hud.summaryAwaiting': 'Awaiting telemetry...',
+ 'hud.recLabel': 'REC',
+
+ // Upstream a11y additions (post-merge follow-up): slider/toggle accessible names.
+ 'display.featherAria': 'Scope edge feather',
+ 'display.bloomAria': 'Bloom intensity',
+ 'display.sharpenAria': 'Sharpen intensity',
+ 'location.searchAria': 'Search location by name or coordinates',
+ 'location.toggleAria': 'Expand LOCATION',
+};
diff --cc src/i18n/locales/en/layers.js
index 3b66325d6,000000000..045396298
mode 100644,000000..100644
--- a/src/i18n/locales/en/layers.js
+++ b/src/i18n/locales/en/layers.js
@@@ -1,516 -1,0 +1,517 @@@
+// English catalog — layers namespace (phase-1 seed).
+//
+// Owns data-layer presentation copy: display names, feed-state labels, and
+// layer batch toasts. Machine-readable values (layer ids, status enum keys,
+// provider names) are intentionally NOT here — see docs/TRANSLATORS.md
+// for the keep-English boundary. Keys are namespace-relative; the registry
+// prefixes them with `layers.`.
+export const NAMESPACE = 'layers';
+
+export default {
+ // src/data/manager.js FEED_STATE_LABELS value
+ 'status.unavailable': 'UNAVAILABLE',
+ // src/data/flights.js / src/data/earthquakes.js layer display names
+ 'name.liveFlights': 'Live Flights',
+ 'name.earthquakes': 'Earthquakes (24h)',
+ // src/ui.js clearSelectedLayers() result toasts (genuine plural copy)
+ 'clear.toast.noneSelected': 'No selected data layers',
+ 'clear.toast.cleared': {
+ one: 'Cleared {count} data layer',
+ other: 'Cleared {count} data layers',
+ },
+ 'clear.toast.notCleared': {
+ one: '{count} data layer could not be cleared',
+ other: '{count} data layers could not be cleared',
+ },
+
+ // ── Phase-2 static markup extraction (index.html), appended ──────────────
+ // The shell worker owns ALL index.html static markup in phase 2
+ // (docs/TRANSLATORS.md cross-surface rule); these keys cover the
+ // layers-worker surfaces (world overlay, CCTV panel, Radio panel) whose
+ // runtime presentation paths land here in phase 3.
+
+ // index.html #world-overlay-actions region (src/overlays/worldOverlay.js)
+ 'overlay.regionAriaLabel': 'Visible map targets',
+
+ // index.html CCTV panel chrome. Button texts marked as states (toggleOff,
+ // coverageOff, autoHopOff, projectionOn) are the shipped initial values; the
+ // phase-3 layer worker adds the flipped-state siblings.
+ 'cctv.panelTitle': 'CCTV',
+ 'cctv.collapseTitle': 'Collapse panel',
+ 'cctv.sourceUnknown': 'SOURCE · UNKNOWN',
+ 'cctv.metaIdle': 'Enable CCTV to load camera intersections',
+ 'cctv.toggleOff': 'CCTV OFF',
+ 'cctv.nearest': 'NEAREST',
+ 'cctv.prev': 'PREV',
+ 'cctv.cameraAriaLabel': 'CCTV camera',
+ 'cctv.next': 'NEXT',
+ 'cctv.focus': 'FOCUS',
+ 'cctv.coverageOff': 'COVERAGE OFF',
+ 'cctv.autoHopOff': 'AUTO HOP OFF',
+ 'cctv.projectionOn': 'PROJECTION ON',
+ 'cctv.calibrationLabel': 'CALIBRATION',
+ 'cctv.adjustLabel': 'ADJUST',
+ 'cctv.adjustTitle':
+ 'Drag the camera in the world: rings rotate, arrows move, handles set range/FOV',
+ 'cctv.calPoseAriaLabel': 'Camera pose — click a value to type',
+ 'cctv.calHeadingTitle': 'Heading (compass °) — click to type',
+ 'cctv.calPitchTitle': 'Pitch (° up/down) — click to type',
+ 'cctv.calFovTitle': 'Horizontal FOV (°) — click to type',
+ 'cctv.calRangeTitle': 'Range / monitor-plane distance (m) — click to type',
+ 'cctv.calHeightTitle': 'Mount height above ground (m) — click to type',
+ 'cctv.calNorthTitle':
+ 'North offset from catalog position (m) — click to type',
+ 'cctv.calEastTitle': 'East offset from catalog position (m) — click to type',
+ 'cctv.saveCal': 'SAVE CAL',
+ 'cctv.resetCal': 'RESET CAL',
+ 'cctv.summaryLabel': 'SCENE SUMMARY',
+ 'cctv.summaryIdle':
+ 'Enable CCTV to start camera-linked intelligence summaries.',
+
+ // index.html Radio panel chrome (right rail #radio-panel)
+ 'radio.panelAriaLabel': 'Internet radio and local SDR',
+ 'radio.panelTitle': 'RADIO',
+ 'radio.expandTitle': 'Expand Radio',
+ 'radio.expandAriaLabel': 'Expand Radio section',
+ 'radio.enable': 'ENABLE',
+ 'radio.stationTagLabel': 'STATION TAG',
+ 'radio.filterAriaLabel': 'Filter stations by station tag',
+ 'radio.filterAll': 'All',
+ 'radio.noStation': 'NO STATION SELECTED',
+ 'radio.stationHint': 'Enable Radio, then choose a globe marker or use next.',
+ // Key-only: the #radio-tuner-band-label span text is pinned verbatim by
+ // radioMarkup.test.mjs, so the attribute must be wired by a later phase.
+ 'radio.bandLabel': 'DIRECTORY BAND',
+ 'radio.dragToTune': 'DRAG TO TUNE',
+ 'radio.tunerIdle': 'ALL · DRAG THE NEEDLE',
+ 'radio.snapsNote': 'SNAPS TO AVAILABLE STATIONS',
+ 'radio.transportAriaLabel': 'Radio playback',
+ 'radio.prev': 'PREV',
+ 'radio.prevAriaLabel': 'Previous filtered station',
+ 'radio.play': 'PLAY',
+ 'radio.playAriaLabel': 'Play selected station',
+ 'radio.next': 'NEXT',
+ 'radio.nextAriaLabel': 'Next filtered station',
+ 'radio.stop': 'STOP',
+ 'radio.stopAriaLabel': 'Stop radio playback',
+ 'radio.volumeLabel': 'VOLUME',
+ 'radio.volumeAriaLabel': 'Radio volume',
+ // Initial idle announcement; the runtime states land with the layers worker.
+ 'radio.playbackOff': 'Radio off',
+ 'radio.stationSite': 'STATION SITE',
+ 'radio.privacyNote':
+ 'Audio connects directly to the broadcaster after you press play. Your IP is visible to that broadcaster.',
+
+ // ── Phase-3 runtime extraction (src/data/*), appended ────────────────────
+ // Layer display names are translated only at the presentation boundary
+ // (manager.js _renderToggles/_syncToggleButton map layer.id → key here).
+ // layer.id values, FEED_STATE_LABELS enum KEYS, and lifecycle state keys
+ // stay English — see docs/TRANSLATORS.md keep-English boundary.
+
+ // src/data/manager.js FEED_STATE_LABELS values + toggle-button states.
+ 'status.on': 'ON',
+ 'status.loading': 'LOADING',
+ 'status.degraded': 'DEGRADED',
+ 'status.stale': 'STALE',
+ 'status.fallback': 'FALLBACK',
+ 'status.off': 'OFF',
+ 'status.partial': 'PARTIAL',
+ 'status.uncertain': 'UNCERTAIN',
+ 'status.enabling': 'ENABLING',
+ 'status.disabling': 'DISABLING',
+
+ // Layer display names (toggle panel rows + toggle-button aria-label).
+ 'name.militaryFlights': 'Military Flights',
+ 'name.satellites': 'Satellites',
+ 'name.rocketLaunches': 'Space Missions (30d)',
+ 'name.traffic': 'Street Traffic',
+ 'name.cctv': 'CCTV',
+ 'name.radio': 'Radio',
+ 'name.bikeshare': 'Bikeshare',
+ 'name.aisVessels': 'Live AIS Vessels',
+ 'name.installations': 'Mapped Installations',
+ 'name.globalContext': 'Global Context',
+ 'name.datacenters': 'Datacenters',
+ 'name.dams': 'Dams',
+ 'name.submarineCables': 'Submarine Cables',
+ 'name.fires': 'FIRMS Active Fires',
+
+ // src/data/manager.js data-panel row meta line (_buildMetaText) + time ago.
+ 'meta.justNow': 'just now',
+ 'meta.secondsAgo': '{count}s ago',
+ 'meta.minutesAgo': '{count}m ago',
+ 'meta.hoursAgo': '{count}h ago',
+ 'meta.never': 'never',
++ 'meta.dataSourceUnavailable': 'Data source unavailable',
+ 'meta.loading': 'loading...',
+ 'meta.uncertainLifecycle':
+ 'UNCERTAIN · {source} · lifecycle state requires reconciliation',
+ 'meta.transitioning': '{state} · {source}',
+ 'meta.stateSourceRetry': '{state} · {source} · {detail} · retry {seconds}s',
+ 'meta.stateSourceDetail': '{state} · {source} · {detail}',
+ 'meta.stateSourceAgo': '{state} · {source} · {ago}',
+ 'meta.stateSourceAgoRetry':
+ '{state} · {source} · {ago} · retrying in {seconds}s',
+ 'meta.sourceLoading': '{source} · {loadingLabel}',
+ 'meta.sourceAgo': '{source} · {ago}',
+ 'meta.partialCounts': '{accepted} of {raw} records accepted',
+ 'meta.partialIncomplete': 'incomplete snapshot',
+ 'meta.partialDetail': '{state} · {source} · {detail} · {ago}',
+ 'meta.toggleAriaLabel': '{name}: {state}',
+
+ // src/data/militaryFlights.js tracked readout fallback captions.
+ 'readout.typeUnknown': 'Type unknown',
+ 'readout.regUnknown': 'Reg unknown',
+ 'readout.operatorUnknown': 'Operator unknown',
+ 'readout.altUnknown': 'Alt unknown',
+
+ // src/data/vesselLabels.js AIS type names (display only — the styling
+ // matcher keeps the English tokens as machine values).
+ 'vessel.type.fishing': 'FISHING',
+ 'vessel.type.towing': 'TOWING',
+ 'vessel.type.dredger': 'DREDGER',
+ 'vessel.type.diveOps': 'DIVE OPS',
+ 'vessel.type.military': 'MILITARY',
+ 'vessel.type.sailing': 'SAILING',
+ 'vessel.type.pleasure': 'PLEASURE',
+ 'vessel.type.pilot': 'PILOT',
+ 'vessel.type.sar': 'SAR',
+ 'vessel.type.tug': 'TUG',
+ 'vessel.type.portTender': 'PORT TENDER',
+ 'vessel.type.antiPollution': 'ANTI-POLLUTION',
+ 'vessel.type.lawEnforce': 'LAW ENFORCE',
+ 'vessel.type.medical': 'MEDICAL',
+ 'vessel.type.highSpeed': 'HIGH-SPEED',
+ 'vessel.type.passenger': 'PASSENGER',
+ 'vessel.type.cargo': 'CARGO',
+ 'vessel.type.tanker': 'TANKER',
+ 'vessel.type.other': 'OTHER',
+
+ // src/data/aisLiveVessels.js vessel cards + selected-vessel HUD.
+ 'vessel.fallback': 'VESSEL',
+ 'vessel.posLive': 'POS: LIVE',
+ 'vessel.posAt': 'POS: {time}Z',
+ 'vessel.hudIdle': 'AIS: --',
+ 'vessel.hudName': 'AIS: {name}',
+ 'vessel.hudTypeLine': '{type} SPD: {speed} HDG: {heading}',
+ 'vessel.awaitingFirstPosition': 'awaiting first AIS position…',
+
+ // index.html CCTV panel flipped-state siblings (runtime writers live in
+ // src/ui.js, owned by core-ui — these keys are the layers-surface half of
+ // the cross-surface rule in docs/TRANSLATORS.md).
+ 'cctv.toggleOn': 'CCTV ON',
+ 'cctv.coverageOn': 'COVERAGE ON',
+ 'cctv.autoHopOn': 'AUTO HOP ON',
+ 'cctv.projectionOff': 'PROJECTION OFF',
+ 'cctv.adjustOn': 'ADJUST ON',
+
+ // src/data/cctv.js buildSummaryText() — the SCENE SUMMARY line.
+ 'cctv.summary.standingBy':
+ '{count} CAMERAS STANDING BY · NO CAMERA SELECTED · CLICK A CAMERA TO ACTIVATE',
+ 'cctv.summary.empty': 'No cameras available in catalog.',
+ 'cctv.summary.city': '{city} CCTV',
+ 'cctv.summary.hdg': 'HDG {value}°',
+ 'cctv.summary.hdgEstimated': 'HDG {value}° (ESTIMATED)',
+ 'cctv.summary.fov': 'FOV {value}°',
+ 'cctv.summary.coverage': 'COVERAGE {value}km²',
+ 'cctv.summary.overlap': 'OVERLAP {count} cams',
+ 'cctv.summary.isolated': 'ISOLATED VIEW',
+ 'cctv.summary.projMonitor': 'PROJ MONITOR',
+ 'cctv.summary.projOff': 'PROJ OFF',
+ 'cctv.summary.viewshed': 'VIEWSHED',
+ 'cctv.summary.cal': 'CAL {value}',
+ 'cctv.summary.src': 'SRC {value}',
+ 'cctv.summary.context': '{value} CONTEXT',
+
+ // src/data/radio.js station-tag categories, genre labels, cluster badges.
+ 'radio.category.news': 'News',
+ 'radio.category.talk': 'Talk',
+ 'radio.category.weather': 'Weather / Emergency',
+ 'radio.category.publicSafety': 'Public Safety',
+ 'radio.category.aviationMarine': 'Aviation / Marine',
+ 'radio.category.trafficTransit': 'Traffic / Transit',
+ 'radio.category.music': 'Music',
+ 'radio.category.other': 'Other',
+ 'radio.genre.alternative': 'Alternative',
+ 'radio.genre.ambient': 'Ambient',
+ 'radio.genre.blues': 'Blues',
+ 'radio.genre.classical': 'Classical',
+ 'radio.genre.country': 'Country',
+ 'radio.genre.dance': 'Dance',
+ 'radio.genre.electronic': 'Electronic',
+ 'radio.genre.folk': 'Folk',
+ 'radio.genre.funk': 'Funk',
+ 'radio.genre.hipHop': 'Hip-Hop',
+ 'radio.genre.house': 'House',
+ 'radio.genre.indie': 'Indie',
+ 'radio.genre.jazz': 'Jazz',
+ 'radio.genre.latin': 'Latin',
+ 'radio.genre.metal': 'Metal',
+ 'radio.genre.oldies': 'Oldies',
+ 'radio.genre.pop': 'Pop',
+ 'radio.genre.punk': 'Punk',
+ 'radio.genre.rAndB': 'R&B',
+ 'radio.genre.reggae': 'Reggae',
+ 'radio.genre.rock': 'Rock',
+ 'radio.genre.soul': 'Soul',
+ 'radio.genre.techno': 'Techno',
+ 'radio.genre.trance': 'Trance',
+ 'radio.genre.world': 'World',
+ 'radio.cluster.news': 'NEWS',
+ 'radio.cluster.talk': 'TALK',
+ 'radio.cluster.weather': 'WEATHER',
+ 'radio.cluster.publicSafety': 'SAFETY',
+ 'radio.cluster.aviationMarine': 'AIR / SEA',
+ 'radio.cluster.trafficTransit': 'TRANSIT',
+ 'radio.cluster.music': 'MUSIC',
+ 'radio.cluster.other': 'OTHER',
+
+ // Radio right-rail panel runtime states (seeded here per the ownership
+ // contract; src/ui.js wires the writes — core-ui). English values mirror
+ // the literals ui.js writes today so wiring is byte-identical under 'en'.
+ 'radio.noStationAvailable': 'NO STATION AVAILABLE',
+ 'radio.disable': 'DISABLE',
+ 'radio.reconcile': 'RECONCILE',
+ 'radio.enableAria': 'Enable Radio',
+ 'radio.disableAria': 'Disable Radio',
+ 'radio.reconcileAria': 'Reconcile Radio — lifecycle uncertain',
+ 'radio.meta.loading': 'Loading station directory…',
+ 'radio.meta.metadataOnly': 'Directory metadata only',
+ 'radio.meta.chooseHint': 'Choose a globe marker or use next.',
+ 'radio.tags': 'TAGS · {tags}',
+ 'radio.state.ready': 'Ready — playback starts only from your action',
+ 'radio.state.loading': 'Connecting directly to broadcaster…',
+ 'radio.state.buffering': 'Buffering broadcaster stream…',
+ 'radio.state.playing': 'Playing {station}',
+ 'radio.state.paused': 'Paused {station}',
+ 'radio.state.error': 'Broadcaster stream unavailable',
+ 'radio.state.degradedDirectory': ' · degraded directory',
+ 'radio.state.staleDirectory': ' · stale directory',
+ 'radio.state.staleDegradedDirectory': ' · stale/degraded directory',
+ 'radio.state.outsideFilter': ' · outside current filter',
+ 'radio.state.voiceMuted': ' · muted during voice interaction',
+ 'radio.state.voiceRestoring': ' · restoring volume after voice',
+ 'radio.state.staticNoAudio': ' · static indicates no broadcaster audio',
+ 'radio.state.tuningStatic': ' · tuning static until broadcaster starts',
+ 'radio.state.stationUnavailable':
+ 'Station unavailable after directory refresh — choose another channel',
+ 'radio.state.enabling': 'Radio is enabling…',
+ 'radio.state.disabling': 'Radio is disabling…',
+ 'radio.state.uncertain':
+ 'Radio lifecycle is uncertain — use Enable or Disable to reconcile',
+
+ // src/data/rocketLaunches.js space-mission surface (runtime-built panel,
+ // roster, replay overlay, and map cards).
+ 'missions.launchSite': 'LAUNCH SITE',
+ 'missions.launchSiteValue': 'LAUNCH SITE · {site}',
+ 'missions.panel.selectedHeader': 'SELECTED SPACE MISSION',
+ 'missions.panel.showAllTitle': 'Show all missions',
+ 'missions.panel.deselectAria': 'Deselect mission',
+ 'missions.panel.mission': 'MISSION',
+ 'missions.panel.status': 'STATUS · ',
+ 'missions.panel.launchSite': 'LAUNCH SITE · ',
+ 'missions.panel.launchTime': 'LAUNCH TIME · ',
+ 'missions.panel.orbit': 'ORBIT · ',
+ 'missions.panel.ascentPath': 'ASCENT PATH · ',
+ 'missions.panel.distance': 'CURRENT DISTANCE FROM EARTH · ',
+ 'missions.panel.speed': 'SATELLITE SPEED · ',
+ 'missions.panel.payload': 'PAYLOAD',
+ 'missions.panel.colName': 'NAME',
+ 'missions.panel.colType': 'TYPE',
+ 'missions.panel.colDestination': 'DESTINATION',
+ 'missions.panel.stagesSection': 'STAGE / RE-ENTRY / RECOVERY',
+ 'missions.panel.colStage': 'STAGE',
+ 'missions.panel.colStatus': 'STATUS',
+ 'missions.panel.colFinalPosition': 'FINAL POSITION',
+ 'missions.panel.focus': 'FOCUS',
+ 'missions.panel.prev': 'PREV',
+ 'missions.panel.next': 'NEXT',
+ 'missions.panel.prevTitle': 'Previous mission',
+ 'missions.panel.nextTitle': 'Next mission',
+ 'missions.panel.showAll': 'SHOW ALL / DESELECT',
+ 'missions.roster.empty': 'NO MISSIONS AVAILABLE IN THE CURRENT 30-DAY WINDOW',
+ 'missions.roster.count': '{count} / 30D',
+ 'missions.roster.dateUnavailable': 'DATE UNAVAILABLE',
+ 'missions.roster.unspecifiedOperator': 'UNSPECIFIED OPERATOR',
+ 'missions.roster.selectAria': 'Select {mission}',
+ 'missions.rows.additionalPayloads': '+{count} additional payload records',
+ 'missions.rows.classified': 'PAYLOAD DATA UNAVAILABLE',
+ 'missions.rows.noStageData': 'NO STAGE RE-ENTRY / RECOVERY DATA',
+ 'missions.rows.unspecified': 'UNSPECIFIED',
+ 'missions.rows.unavailable': 'UNAVAILABLE',
+ 'missions.rows.flightNumber': 'FLIGHT {count}',
+ 'missions.rows.reused': 'REUSED',
+ 'missions.rows.positionUnavailable': 'POSITION UNAVAILABLE',
+ 'missions.rows.kmDownrange': '{value} KM DOWNRANGE',
+ 'missions.rows.plannedPrefix': 'PLANNED · ',
+ 'missions.rows.suppliedTrajectory': 'SUPPLIED TRAJECTORY POINTS',
+ 'missions.rows.reconstructedEstimate': 'RECONSTRUCTED ESTIMATE',
+ 'missions.telemetry.km': '{value} KM',
+ 'missions.telemetry.kmPerSecond': '{value} KM/S',
+ 'missions.replay.start': 'REPLAY ASCENT',
+ 'missions.replay.startTitle':
+ 'Replay the estimated ascent with a following camera',
+ 'missions.replay.pause': 'Pause replay',
+ 'missions.replay.resume': 'Resume replay',
+ 'missions.replay.cancel': 'Cancel replay',
+ 'missions.replay.speedLabel': 'REPLAY SPEED',
+ 'missions.replay.speedAria': 'Replay speed multiplier',
+ 'missions.replay.countdown': 'T−{time} · {mission}',
+ 'missions.replay.standbyDetail': 'LAUNCH STANDBY',
+ 'missions.replay.liftoff': 'LIFTOFF · {mission}',
+ 'missions.replay.ascentReplay': 'ASCENT REPLAY · {mission}',
+ 'missions.replay.ascentEstimate': 'ASCENT ESTIMATE · {mission}',
+ 'missions.replay.recovery': 'STAGE RE-ENTRY / RECOVERY · {mission}',
+ 'missions.replay.orbit': 'ORBIT REPLAY · {mission}',
+ 'missions.replay.pausedPrefix': 'PAUSED · {title}',
+ 'missions.replay.phaseCountdown': 'T minus {seconds}',
+ 'missions.replay.phasePreparing': 'Preparing launch site',
+ 'missions.replay.phaseLiftoff': 'Liftoff',
+ 'missions.replay.phaseAscent': 'Ascent replay',
+ 'missions.replay.phaseOrbit': 'Orbit replay',
+ 'missions.replay.pausedSuffix': ', paused',
+
+ // src/data/satellites.js dense-shell chip + src/data/satelliteClass.js
+ // class labels and legend blurbs.
+ 'satellites.denseChip': 'DENSE',
+ 'satellites.denseChipLoading': 'DENSE ···',
+ 'satellites.denseChipFailed': 'DENSE ✕',
+ 'satellites.denseTitleAdd':
+ 'Add the full Starlink broadband shell (thousands of extra points)',
+ 'satellites.denseTitleLoading': 'Loading the Starlink shell…',
+ 'satellites.denseTitleFailed': 'Starlink {detail} — click to retry',
+ 'satellites.loadFailed': 'load failed',
+ 'satellites.denseTitleActive':
+ 'Showing the full Starlink shell — click for the core catalog only',
+ 'satellites.class.station': 'STATION',
+ 'satellites.class.stationBlurb':
+ 'Crewed stations and their visiting vehicles',
+ 'satellites.class.nav': 'NAV',
+ 'satellites.class.navBlurb': 'GNSS navigation — GPS, GLONASS, Galileo',
+ 'satellites.class.geo': 'GEO',
+ 'satellites.class.geoBlurb':
+ 'Geostationary belt — comms and weather, fixed over the equator',
+ 'satellites.class.visual': 'VISUAL',
+ 'satellites.class.visualBlurb':
+ 'Brightest naked-eye objects — CelesTrak visual group',
+ 'satellites.class.comms': 'COMMS',
+ 'satellites.class.commsBlurb':
+ 'Broadband constellation shell — shown only in DENSE mode',
+
+ // src/data/firmsHeatmap.js stats labels + fire/cell cards.
+ 'meta.refreshing': 'refreshing...',
+ 'firms.keyRequired': 'KEY REQUIRED',
+ 'firms.staleCached': 'STALE · cached {age}',
+ 'firms.liveUpdated': 'LIVE · updated {age}',
+ 'firms.underMinuteAgo': '<1m ago',
+ 'firms.card.fire': 'FIRE · {frp} MW',
+ 'firms.card.ambient': '▲ {frp} MW',
+ 'firms.card.fireNoun': 'FIRE',
+ 'firms.card.firesNoun': 'FIRES',
+ 'firms.card.confSuffix': '{value} conf',
+ 'firms.card.ageSuffix': '{value} ago',
+ 'firms.card.maxFrp': 'max {value} MW',
+ 'firms.card.newAge': 'new {value}',
+ 'firms.card.night': 'NIGHT',
+ 'firms.card.sensorUnavailable': 'sensor n/a',
+ 'firms.card.focusAria': 'Focus fire detection {title}, {details}',
+
+ // src/data/traffic.js feed presentation (manager meta loadingLabel values).
+ 'traffic.loadingSyncing':
+ 'Syncing flow · Roads: OpenStreetMap · Flow: TomTom · Unmatched: simulated',
+ 'traffic.liveCoverage':
+ 'LIVE · Roads: OpenStreetMap · Flow: TomTom · {percent}% cov',
+ 'traffic.liveCoverageUnmatched':
+ 'LIVE · Roads: OpenStreetMap · Flow: TomTom · {percent}% cov · Unmatched: simulated',
+ 'traffic.simulatedNoMatches':
+ 'SIMULATED · Roads: OpenStreetMap · Flow: TomTom (no matches)',
+ 'traffic.syncingRoads': 'Syncing flow · Roads: {source}',
+ 'traffic.liveRoadsFlowHidden':
+ 'LIVE · Roads: {source} · Roads without flow hidden',
+ 'traffic.liveRoadsNoFlowInView':
+ 'LIVE · Roads: {source} · No flow roads in view',
+ 'traffic.roadsFlowLive': 'LIVE · Roads: {source} · Flow {percent}%',
+ 'traffic.roadsFlowSimulated': 'SIMULATED · Roads: {source} · Flow {percent}%',
+ 'traffic.simUnavailable': 'SIMULATED — traffic service unreachable',
+ 'traffic.simKeyless': 'SIMULATED — add TomTom key for live',
+
+ // src/data/bikeshare.js loading labels + selected-station card.
+ 'bike.loadingSyncing': 'syncing {count} city feeds...',
+ 'bike.loadingScanning': 'scanning nearby systems...',
+ 'bike.card.capacity': '🚲 {bikes} avail · {docks} docks · {capacity} cap',
+ 'bike.warning.notInstalled': '⚠️ Not installed',
+ 'bike.warning.notRenting': '⚠️ Not renting',
+ 'bike.warning.notReturning': '⚠️ Not returning',
+ 'bike.stationFallback': 'Station',
+ 'bike.stationWithId': 'Station {id}',
+
+ // src/data/militaryInstallations.js + installationFeedback.js.
+ 'installations.fallbackTitle': 'MAPPED INSTALLATION',
+ 'installations.loading': 'loading mapped installation context',
+ 'installations.feedback.reason.rateLimited': 'Overpass rate-limited',
+ 'installations.feedback.reason.timeout': 'Overpass timed out',
+ 'installations.feedback.reason.queryFailed':
+ 'Overpass could not complete the query',
+ 'installations.feedback.reason.unavailable':
+ 'Overpass temporarily unavailable',
+ 'installations.feedback.retrying': 'Retrying mapped sites…',
+ 'installations.feedback.fetching': 'Fetching mapped sites…',
+ 'installations.feedback.retryIn': '{reason} — retrying in {seconds}s',
+ 'installations.feedback.retryPending': '{reason} — retry pending',
+ 'installations.feedback.zoomIn': 'Zoom in to search mapped installations',
+ 'installations.feedback.cached': 'Showing cached mapped sites',
+ 'installations.feedback.notLoaded': 'Mapped sites not loaded',
+ 'installations.feedback.loaded': 'Mapped sites loaded',
+
+ // src/data/militaryAwareness.js panel + militaryAwarenessEngine.js reasons.
+ 'awareness.standbyReady': 'CONTEXT READY',
+ 'awareness.standbyOff': 'GLOBAL CONTEXT OFF',
+ 'awareness.standbySelect': 'SELECT A FLIGHT, VESSEL, OR MAPPED INSTALLATION',
+ 'awareness.standbyEnable': 'ENABLE TO LOAD OBSERVED / MAPPED PROXIMITY',
+ 'awareness.controlsAria': 'Global Context navigation',
+ 'awareness.previous': 'PREVIOUS',
+ 'awareness.focus': 'FOCUS',
+ 'awareness.next': 'NEXT',
+ 'awareness.previousTitle':
+ 'Previous — prior visited contact in the 250 km window',
+ 'awareness.nextTitle':
+ 'Next — nearest unvisited contact in the 250 km window',
+ 'awareness.note':
+ 'Open-source mapped/observed context. Missing broadcasts, unloaded map areas, or unmapped sites are not evidence of absence.',
+ 'awareness.unavailableAria': 'Unavailable',
+ 'awareness.focusAria': 'Focus {label}',
+ 'awareness.cohort.flights': 'Flights',
+ 'awareness.cohort.military': 'Military flights',
+ 'awareness.cohort.vessels': 'AIS vessels',
+ 'awareness.cohort.installations': 'Mapped installations',
+ 'awareness.coverage.viewport': 'CURRENT VIEWPORT ONLY',
+ 'awareness.coverage.within': 'WITHIN {km} KM',
+ 'awareness.hdg': 'HDG {value}°',
+ 'awareness.brg': 'BRG {value}°',
+ 'awareness.brgUnknown': 'BRG —',
+ 'awareness.crs': 'CRS {value}°',
+ 'awareness.reason.feedUnavailable': 'feed unavailable',
+ 'awareness.reason.feedStale': 'feed stale',
+ 'awareness.reason.nearby': 'observed or mapped nearby context',
+ 'awareness.reason.none': 'no observed or mapped objects in current feeds',
+
+ // src/data/regionalBrief.js WMO weather-code labels (cockpit copy).
+ 'weather.conditionsUnknown': 'CONDITIONS UNKNOWN',
+ 'weather.clear': 'CLEAR',
+ 'weather.partlyCloudy': 'PARTLY CLOUDY',
+ 'weather.overcast': 'OVERCAST',
+ 'weather.fog': 'FOG',
+ 'weather.drizzle': 'DRIZZLE',
+ 'weather.rain': 'RAIN',
+ 'weather.snow': 'SNOW',
+ 'weather.rainShowers': 'RAIN SHOWERS',
+ 'weather.snowShowers': 'SNOW SHOWERS',
+ 'weather.thunderstorm': 'THUNDERSTORM',
+ 'weather.mixed': 'MIXED CONDITIONS',
+
+ 'missions.roster.keyboardHint': 'TAB PREVIEWS · ENTER / SPACE SELECTS',
+
+ 'vessel.awaitingPositions': 'awaiting usable AIS positions…',
+ 'vessel.awaitingFirstMessage': 'awaiting first AIS message…',
+ 'missions.estDownrange': 'EST. DOWNRANGE',
+};
diff --cc src/layers/awareness/panel.js
index 75101c873,4eec6d5d1..327a14ac0
--- a/src/layers/awareness/panel.js
+++ b/src/layers/awareness/panel.js
@@@ -3,9 -3,17 +3,18 @@@ import
formatAwarenessDistance,
AWARENESS_RADIUS_M,
} from '../../data/militaryAwarenessEngine.js';
+import { t } from '../../i18n/index.js';
import { AWARENESS_PAGE_SIZE, AWARENESS_PAGE_ROTATE_MS } from './policy.js';
+ /** Format a cohort total without presenting a retained cap as exact. */
+ export function formatAwarenessCount(summary = {}) {
+ if (!Number.isFinite(summary.count)) return '?';
+ const count = summary.count.toLocaleString('en-US');
+ return summary.complete === false || summary.truncated === true
+ ? `At least ${count}`
+ : count;
+ }
+
export function createPanel({ state: layerState, services, parts, source }) {
function ensurePanel() {
if (layerState.panel) return layerState.panel;
diff --cc src/layers/awareness/subject.js
index f29179bd5,da2d6ab65..cf95b13d9
--- a/src/layers/awareness/subject.js
+++ b/src/layers/awareness/subject.js
@@@ -82,8 -78,14 +94,14 @@@ export function createSubject({ state:
cohorts: [
{
id: 'flights',
- label: 'Flights',
+ label: t('layers.awareness.cohort.flights'),
source: flightsState.stats.source || SOURCE_LABEL.flights,
+ provenance: retainedProvenance(
+ 'flights',
+ 'Flights',
+ flightsState,
+ SOURCE_LABEL.flights,
+ ),
summary: parts.navigation.summarizeAwarenessCohortForNavigation(
flights,
flightsState,
@@@ -91,8 -97,14 +113,14 @@@
},
{
id: 'military',
- label: 'Military flights',
+ label: t('layers.awareness.cohort.military'),
source: militaryState.stats.source || SOURCE_LABEL.military,
+ provenance: retainedProvenance(
+ 'military',
+ 'Military flights',
+ militaryState,
+ SOURCE_LABEL.military,
+ ),
summary: parts.navigation.summarizeAwarenessCohortForNavigation(
military,
militaryState,
@@@ -100,8 -116,14 +132,14 @@@
},
{
id: 'ais-live-vessels',
- label: 'AIS vessels',
+ label: t('layers.awareness.cohort.vessels'),
source: vesselsState.stats.source || SOURCE_LABEL['ais-live-vessels'],
+ provenance: retainedProvenance(
+ 'ais-live-vessels',
+ 'AIS vessels',
+ vesselsState,
+ SOURCE_LABEL['ais-live-vessels'],
+ ),
summary: parts.navigation.summarizeAwarenessCohortForNavigation(
vessels,
vesselsState,
@@@ -113,9 -135,14 +151,15 @@@
source:
installationsState.stats.source ||
SOURCE_LABEL['military-installations'],
+ provenance: retainedProvenance(
+ 'military-installations',
+ 'Mapped installations',
+ installationsState,
+ SOURCE_LABEL['military-installations'],
+ ),
coverage:
- installationsState.stats.coverageLabel || 'CURRENT VIEWPORT ONLY',
+ localizeCoverageLabel(installationsState.stats.coverageLabel) ||
+ t('layers.awareness.coverage.viewport'),
summary: parts.queries.summarizeInstallationViewport(
installations,
installationsState,
diff --cc src/layers/vessels/queries.js
index c3ea015b8,7b06ee23b..883789434
--- a/src/layers/vessels/queries.js
+++ b/src/layers/vessels/queries.js
@@@ -122,8 -106,8 +122,8 @@@ export function createQueries(
/**
* Classify one server snapshot before any destructive reconciliation.
- * @param {Object|null|undefined} payload - Parsed /api/ais-live payload.
- * @returns {{transportStatus: string|null, lastMessageAt: number|string|null,
+ * @param {Object|null|undefined} payload - Parsed /api/vessels payload.
- * @returns {{transportStatus: string|null, lastMessageAt: number|string|null,
++ * @returns {{emptyCoverage: boolean, transportStatus: string|null, lastMessageAt: number|string|null,
* rawRows: Array<Object>, acceptedRows: Array<Object>, rawRowCount: number,
* acceptedRowCount: number, error: string|null}}
*/
@@@ -146,9 -139,10 +155,12 @@@
? payload.rawRowCount
: rawRows.length,
acceptedRowCount,
- error:
- deriveAisFeedError(payload, acceptedRowCount) ||
- (acceptedRowCount === 0 ? t('layers.vessel.awaitingPositions') : null),
+ error: emptyCoverage
+ ? null
+ : deriveAisFeedError(payload, acceptedRowCount) ||
- (acceptedRowCount === 0 ? 'awaiting usable AIS positions…' : null),
++ (acceptedRowCount === 0
++ ? t('layers.vessel.awaitingPositions')
++ : null),
};
}
diff --cc src/standalone/application.js
index a36d27c45,5c5b048d9..25728439d
--- a/src/standalone/application.js
+++ b/src/standalone/application.js
@@@ -6,8 -6,7 +6,9 @@@ import { createStandaloneScene } from '
import { createStandaloneControls } from './controls.js';
import { createStandaloneData } from './data.js';
import { createStandaloneTools } from './tools.js';
+import { resolveLocale, applyDocumentLanguage } from '../i18n/locale.js';
+import { applyDocumentTranslations, setLocale } from '../i18n/index.js';
+ import { createGoogleTokenSource } from '../maps/googleTokens.js';
// The existing controls and layer catalog contain page-scoped state.
let constructed = false;
diff --cc src/tooling/viteBuild.test.mjs
index d4018c0f6,b9a1682ca..60de33aec
--- a/src/tooling/viteBuild.test.mjs
+++ b/src/tooling/viteBuild.test.mjs
@@@ -11,17 -11,14 +11,16 @@@ test('explicit build inputs preserve br
plugins: [plugin],
googleApiKey: 'browser-fixture',
cesiumToken: 'ion-fixture',
+ defaultLocale: 'fr',
+ secondaryLocale: 'en',
});
- assert.equal(config.plugins[2], plugin);
+ // The Host check runs before every other plugin's middleware.
+ assert.equal(config.plugins[0].name, 'host-check');
+ assert.equal(config.plugins[0].enforce, 'pre');
+ assert.equal(config.plugins[3], plugin);
assert.equal(config.server.host, 'localhost');
assert.equal(config.server.port, 4173);
- assert.deepEqual(config.server.allowedHosts, [
- 'localhost',
- '127.0.0.1',
- '.local',
- ]);
+ assert.deepEqual(config.server.allowedHosts, ['localhost', '127.0.0.1']);
assert.ok(config.server.fs.deny.includes('**/ENVIRONMENT'));
assert.ok(config.server.fs.deny.includes('.env.*'));
assert.equal(config.server.headers['X-Frame-Options'], 'DENY');
@@@ -32,14 -38,26 +40,29 @@@
assert.deepEqual(config.define, {
'import.meta.env.GOOGLE_MAPS_API_KEY': '"browser-fixture"',
'import.meta.env.CESIUM_ION_TOKEN': '"ion-fixture"',
+ // Locale pair (i18n): threaded like the other explicit browser inputs.
+ 'import.meta.env.GEV_DEFAULT_LOCALE': '"fr"',
+ 'import.meta.env.GEV_SECONDARY_LOCALE': '"en"',
+ 'import.meta.env.MAPILLARY_CLIENT_TOKEN': '""',
});
assert.equal(
- createBrowserViteConfig({ host: '0.0.0.0', port: '4800' }).server
- .allowedHosts,
- true,
+ createBrowserViteConfig({ mapillaryToken: 'MLY|1|abc' }).define[
+ 'import.meta.env.MAPILLARY_CLIENT_TOKEN'
+ ],
+ '"MLY|1|abc"',
+ );
+ // A wildcard bind keeps the Host-header check; LAN names are explicit.
+ for (const host of ['0.0.0.0', '::'])
+ assert.deepEqual(
+ createBrowserViteConfig({ host, port: '4800' }).server.allowedHosts,
+ ['localhost', '127.0.0.1'],
+ );
+ assert.deepEqual(
+ createBrowserViteConfig({
+ host: '0.0.0.0',
+ allowedHosts: ['localhost', '127.0.0.1', 'globe.lan'],
+ }).server.allowedHosts,
+ ['localhost', '127.0.0.1', 'globe.lan'],
);
assert.equal(
createBrowserViteConfig({ host: '::', port: '4800' }).server.port,
diff --cc src/ui/cockpitInstruments.js
index f26f4a6c5,e4814517d..e21d1528f
--- a/src/ui/cockpitInstruments.js
+++ b/src/ui/cockpitInstruments.js
@@@ -244,14 -222,18 +241,18 @@@ export function setVisionMode(mode, { r
crt: 'CRT',
nvg: 'NVG',
thermal: 'FLIR',
+ anime: 'ANIME',
noir: 'NOIR',
+ snow: 'SNOW',
};
const names = {
- optical: inherited,
+ optical: 'Normal',
crt: 'CRT',
- nvg: 'Night vision',
- thermal: 'Thermal',
- anime: 'Anime',
- noir: 'Noir',
- snow: 'Snow',
+ nvg: t('cockpit.vision.styleNameNightVision'),
+ thermal: t('cockpit.vision.styleNameThermal'),
++ anime: t('cockpit.vision.styleNameAnime'),
+ noir: t('cockpit.vision.styleNameNoir'),
++ snow: t('cockpit.vision.styleNameSnow'),
};
if (this.visionCurrent) {
this.visionCurrent.dataset.cockpitVision = next;
diff --cc src/ui/cockpitTrackingController.js
index beb76a3ea,4d76b4e6b..33a787c39
--- a/src/ui/cockpitTrackingController.js
+++ b/src/ui/cockpitTrackingController.js
@@@ -194,14 -190,11 +194,14 @@@ export function enter()
this.pushCockpitSignal(
'track',
'track',
- 'TRACK ACQUIRED',
- `${trackLabel} · COURSE ${trackHeading}°`,
+ t('cockpit.signal.trackAcquired'),
+ t('cockpit.signal.trackDetail', {
+ label: trackLabel,
+ heading: `${trackHeading}°`,
+ }),
);
this.updateHud(info, performance.now(), true);
- this.setVisionMode(this.visionMode);
+ this.setVisionMode(this.getInitialVisionMode());
this.scheduleContextLayout();
this.mapViewButton?.focus({ preventScroll: true });
this.onEntered?.();
diff --cc src/ui/layerPanel.js
index 7e02aa8f2,e4c240f23..892fae73e
--- a/src/ui/layerPanel.js
+++ b/src/ui/layerPanel.js
@@@ -698,16 -618,21 +704,21 @@@ export class LayerPanel
// click guard above prevents repeat activation without the focus loss caused
// by native `disabled`.
button.disabled = false;
- button.setAttribute('aria-disabled', String(transitioning));
+ button.setAttribute(
+ 'aria-disabled',
+ String(transitioning || (unavailable && !layer.enabled)),
+ );
button.setAttribute('aria-busy', String(transitioning));
button.textContent = transitioning
- ? layer.lifecycleState.toUpperCase()
+ ? lifecycleStateLabel(layer.lifecycleState)
: uncertain
- ? 'UNCERTAIN'
+ ? t('layers.status.uncertain')
- : layer.enabled
+ : layer.enabled || unavailable
- ? FEED_STATE_LABELS[feedState]
- : 'OFF';
+ ? t(FEED_STATE_LABEL_KEYS[feedState])
+ : t('layers.status.off');
- const keyGuidance = layerKeyRequirementTooltip(layer);
+ const keyGuidance = unavailable
- ? String(layer.stats.error || 'Data source unavailable')
++ ? String(layer.stats.error || t('layers.meta.dataSourceUnavailable'))
+ : layerKeyRequirementTooltip(layer);
// Name the missing key on the control itself: a row reading KEY REQUIRED
// without saying WHICH key leaves a dead control and no next step. Empty
// when the layer needs no key, or already has one.
diff --cc src/ui/panelPositionControls.js
index 57a68baba,b40a2d378..2366d8e6d
--- a/src/ui/panelPositionControls.js
+++ b/src/ui/panelPositionControls.js
@@@ -1,5 -1,6 +1,6 @@@
/** Own panel position preferences, viewport clamping and drag listeners. */
+import { t } from '../i18n/index.js';
+ import { RESIZE_DIRECTIONS, resizeBox } from './panelResize.js';
-
/** Versioned localStorage namespace prefix to invalidate stale panel layouts. */
const PANEL_LAYOUT_STORAGE_VERSION = 'v6';
/**
diff --cc src/ui/shareRestoration.js
index e3e66173c,135d70d75..ad7dcd9c9
--- a/src/ui/shareRestoration.js
+++ b/src/ui/shareRestoration.js
@@@ -1,7 -1,6 +1,7 @@@
- import { LayerStateCoordinator } from '../data/layerState.js';
+ import { LayerStateCoordinator } from '../data/layerStateCoordinator.js';
import { stampInitialShareGesture } from '../navigationPolicy.js';
import { canPresentDeferredStatusNotice } from '../loadingFeedback.js';
+import { t } from '../i18n/index.js';
import { UiLifetime } from './uiLifetime.js';
/** Own initial share restoration, durable layer state and restoration notices. */
diff --cc src/ui/shellFeedback.js
index 260c925a1,359e885d1..cdf4e2883
--- a/src/ui/shellFeedback.js
+++ b/src/ui/shellFeedback.js
@@@ -121,15 -76,10 +121,15 @@@ export class ShellFeedback
// the flap keeps textContent equal to the settled label throughout, so
// this stays a no-op on the repeat ticks exactly as it did before.
if (presentation.label)
- if (presentation.label)
- setSplitFlapText(
- this._trafficSyncLabel,
- localizeStatusLabel(presentation.label),
- {
- // Completion is a timing signal, not another animated loading stage.
- immediate: !presentation.busy,
- },
- );
- setSplitFlapText(this._trafficSyncLabel, presentation.label, {
- // Completion is a timing signal, not another animated loading stage.
- immediate: !presentation.busy,
- });
++ if (presentation.label)
++ setSplitFlapText(
++ this._trafficSyncLabel,
++ localizeStatusLabel(presentation.label),
++ {
++ // Completion is a timing signal, not another animated loading stage.
++ immediate: !presentation.busy,
++ },
++ );
// Written on every change INCLUDING the empty settled value — the reducer
// clears the progress number once the sync lands, and a truthiness guard
// here would strand the last "..." beside the settled label.
diff --cc src/voice/control.js
index aa0ceda65,a5b586d7d..da22e2bc8
--- a/src/voice/control.js
+++ b/src/voice/control.js
@@@ -29,19 -27,41 +29,41 @@@ export function createVoiceControl({ re
${Array.from({ length: 15 }, (_, index) => `<span style="--bar:${index}"></span>`).join('')}
</div>
<div class="gev-voice-readout">
- <div id="gev-voice-detail">VOICE STANDBY</div>
+ <div id="gev-voice-detail">${t('setup.voice.detail.standby')}</div>
</div>
<div id="gev-voice-help" class="gev-voice-help-tray" role="tooltip">
- <span class="gev-voice-help-kicker">VOICE CONTROL</span>
- <span class="gev-voice-help-detail">Hold Space to speak · tap Space to activate focused controls</span>
+ <span class="gev-voice-help-kicker">${t('setup.voice.kicker.control')}</span>
+ <span class="gev-voice-help-detail">${t('setup.voice.hint.default')}</span>
</div>
+ <section id="gev-voice-card" class="gev-voice-card" hidden aria-label="Voice assistant">
+ <div class="gev-voice-card-header">
+ <span class="gev-voice-card-kicker">VOICE</span>
+ <span id="gev-voice-card-phase" class="gev-voice-card-phase"></span>
+ <button id="gev-voice-card-dismiss" class="gev-voice-card-dismiss" type="button" aria-label="Dismiss voice card">×</button>
+ </div>
+ <p id="gev-voice-card-user" class="gev-voice-card-caption" data-role="user" hidden><span class="gev-voice-card-who">YOU</span><span id="gev-voice-card-user-text" class="gev-voice-card-text"></span></p>
+ <p id="gev-voice-card-pointer" class="gev-voice-card-pointer" hidden><span id="gev-voice-card-pointer-kind" class="gev-voice-card-who">THIS</span><span class="gev-voice-card-sr">: </span><span id="gev-voice-card-pointer-text" class="gev-voice-card-pointer-label"></span></p>
+ <p id="gev-voice-card-assistant" class="gev-voice-card-caption" data-role="assistant" hidden><span class="gev-voice-card-who">GEV</span><span id="gev-voice-card-assistant-text" class="gev-voice-card-text"></span></p>
+ <ol id="gev-voice-card-plan" class="gev-voice-card-plan" aria-label="Plan" hidden></ol>
+ <div id="gev-voice-card-result" class="gev-voice-card-result" hidden>
+ <div id="gev-voice-card-result-title" class="gev-voice-card-result-title"></div>
+ <div id="gev-voice-card-chips" class="gev-voice-card-chips" hidden></div>
+ <ul id="gev-voice-card-lines" class="gev-voice-card-lines"></ul>
+ <ol id="gev-voice-card-referents" class="gev-voice-card-referents" aria-label="Referenced items" hidden></ol>
+ <details id="gev-voice-card-notes" class="gev-voice-card-notes" hidden>
+ <summary>NOTES &amp; SOURCES</summary>
+ <ul id="gev-voice-card-note-list" class="gev-voice-card-lines"></ul>
+ </details>
+ </div>
+ <div id="gev-voice-card-live" class="gev-voice-card-sr" aria-live="polite" aria-atomic="true"></div>
+ </section>
<div class="gev-voice-error-tray" role="alert" aria-live="assertive">
<div class="gev-voice-error-header">
- <span>VOICE SYSTEM ERROR</span>
- <button class="gev-voice-error-dismiss" type="button">DISMISS</button>
+ <span>${t('setup.voice.error.trayTitle')}</span>
+ <button class="gev-voice-error-dismiss" type="button">${t('setup.voice.error.dismiss')}</button>
</div>
<div id="gev-voice-error-detail"></div>
- <div class="gev-voice-error-hint">Check microphone permission and network access, then try again.</div>
+ <div class="gev-voice-error-hint">${t('setup.voice.error.hint')}</div>
</div>
`;
const commandDock = document.getElementById('command-dock');
diff --cc src/voice/realtimeCost.js
index f7420e208,d3d7f684e..5857e0685
--- a/src/voice/realtimeCost.js
+++ b/src/voice/realtimeCost.js
@@@ -51,16 -56,27 +57,31 @@@ export class RealtimeCost
const pendingId = resolveVoiceModel(pendingTier).id;
this.ui.tierButton.title =
this.isActive() && state.modelId !== pendingId
- ? `Next session: ${pendingId} — this session stays on ${state.modelId}`
- : `Voice model: ${pendingId} — click to switch to ${
- isMini ? 'standard' : 'mini'
- }; applies next session`;
+ ? t('setup.voice.tierNextSession', {
+ pendingId,
+ modelId: state.modelId,
+ })
+ : t('setup.voice.tierSwitchHint', {
+ pendingId,
+ target: isMini ? 'standard' : 'mini',
+ });
}
if (this.ui?.costValue) {
+ const liveAuth = this.sessionCloudVoiceAuth || this.cloudVoiceAuth;
+ if (liveAuth === 'oauth') {
+ const { responses, input, output, captions } = this.oauthUsage;
+ this.ui.costValue.hidden = false;
+ this.ui.costValue.textContent = 'COST UNKNOWN';
+ this.ui.costValue.dataset.level = 'unknown';
+ this.ui.costValue.title =
+ `ChatGPT OAuth session: ${responses} response(s), ${input} input and ${output} output tokens, ${captions} caption transcription(s) reported. ` +
+ 'USD cost and the API spend cap are unavailable for this auth mode.' +
+ (state.incomplete
+ ? ' Usage is incomplete because a response was still in flight when the session ended.'
+ : '');
+ return;
+ }
+ this.ui.costValue.hidden = false;
this.ui.costValue.textContent = state.display;
this.ui.costValue.dataset.level = state.level;
this.ui.costValue.title =
diff --cc src/voice/realtimeTurns.js
index 2144364c5,a0c8715b3..44e5b8169
--- a/src/voice/realtimeTurns.js
+++ b/src/voice/realtimeTurns.js
@@@ -578,9 -678,263 +679,263 @@@ export class RealtimeTurns
),
);
}
- this.setStatus('listening', 'Ask or command');
+ this.setStatus('listening', t('setup.voice.detail.askOrCommand'));
}
+ /**
+ * Track what the user can hear: assistant audio start/stop, which
+ * in-band responses spoke before a tool call (preambles), and playback of
+ * the out-of-band progress line.
+ * @param {object} payload Server event.
+ */
+ observeSpeech(payload) {
+ const type = payload?.type;
+ const responseId = payload?.response_id || payload?.response?.id || null;
+ const progress = this.progressResponse;
+ const isProgress = Boolean(
+ responseId && this.progressResponseIds.has(responseId),
+ );
+ if (type === 'input_audio_buffer.speech_started') {
+ // New intent: narration stops, including a line already playing.
+ this.narration?.cancel();
+ return;
+ }
+ if (type === 'input_audio_buffer.speech_stopped') {
+ this.narration?.userTurnEnded();
+ return;
+ }
+ if (
+ type === 'response.output_audio_transcript.delta' &&
+ responseId &&
+ !isProgress
+ ) {
+ this.speechResponseIds.add(responseId);
+ while (this.speechResponseIds.size > SPEECH_RESPONSE_MEMORY)
+ this.speechResponseIds.delete(
+ this.speechResponseIds.values().next().value,
+ );
+ return;
+ }
+ if (type === 'output_audio_buffer.started') {
+ this.assistantAudioPlaying = true;
+ if (progress && progress.id === responseId) {
+ progress.audible = true;
+ progress.playing = true;
+ }
+ this.narration?.audible();
+ return;
+ }
+ if (
+ type === 'output_audio_buffer.stopped' ||
+ type === 'output_audio_buffer.cleared'
+ ) {
+ this.assistantAudioPlaying = false;
+ // Playback ownership ends here, not at response.done: a line keeps
+ // playing after its generation completes.
+ if (progress && (progress.id === responseId || !responseId)) {
+ progress.playing = false;
+ if (!progress.generating) this.progressResponse = null;
+ }
+ this.narration?.quiet();
+ }
+ }
+
+ /** Whether an event belongs to an out-of-band progress response. */
+ isProgressEvent(payload) {
+ const responseId = payload?.response_id || payload?.response?.id || null;
+ if (payload?.response?.metadata?.gev === PROGRESS_RESPONSE_TAG) return true;
+ return Boolean(responseId && this.progressResponseIds.has(responseId));
+ }
+
+ /**
+ * Progress responses live outside the conversation's response lifecycle:
+ * they never set or clear the active in-band response, never touch Radio
+ * handoff state, and only release queued in-band replies when their
+ * generation ends. Their usage is still billed.
+ */
+ handleProgressEvent(payload) {
+ const responseId = payload.response_id || payload.response?.id || null;
+ const progress = this.progressResponse;
+ if (payload.type === 'response.created') {
+ if (responseId) {
+ this.progressResponseIds.add(responseId);
+ while (this.progressResponseIds.size > SPEECH_RESPONSE_MEMORY)
+ this.progressResponseIds.delete(
+ this.progressResponseIds.values().next().value,
+ );
+ }
+ if (progress && progress.id === null) {
+ progress.id = responseId;
+ if (progress.retracted || progress.stopped)
+ this.cancelResponse(responseId);
+ }
+ return;
+ }
+ if (payload.type !== 'response.done') return;
+ this.recordUsage(payload.response?.usage);
+ if (progress && progress.id === responseId) {
+ progress.generating = false;
+ if (!progress.playing) this.progressResponse = null;
+ }
+ this.resumeInBandResponses();
+ }
+
+ /** Whether a progress line is still being generated. */
+ progressGenerating() {
+ return Boolean(this.progressResponse?.generating);
+ }
+
+ /** Release an in-band reply that waited behind a progress line. */
+ resumeInBandResponses() {
+ if (this.progressGenerating()) return;
+ if (this.pendingUserTextResponse) this.requestUserTextResponse();
+ else this.flushPendingResponse();
+ }
+
+ /** Whether a progress line may start now without talking over anyone. */
+ canNarrate() {
+ return Boolean(
+ this.dc?.readyState === 'open' &&
+ !this.responseActive &&
+ !this.responseCreatePending &&
+ !this.userTurnPending &&
+ !this.assistantAudioPlaying &&
+ !this.progressResponse &&
+ this.radio.mayVoiceClaimSpeaker() &&
+ !this.isSessionEnding(),
+ );
+ }
+
+ /**
+ * Speak one progress line out of band: outside the conversation (so the
+ * prompt cache and history are untouched), with tools disabled and a
+ * small output bound.
+ * @param {string} line Code-authored line.
+ * @returns {boolean} Whether the request was sent.
+ */
+ speakProgressLine(line) {
+ if (!line || !this.canNarrate()) return false;
+ const eventId = `gev_progress_${++this.bestEffortSequence}`;
+ const sent = this.sendRealtimeEvent(
+ {
+ type: 'response.create',
+ event_id: eventId,
+ response: {
+ conversation: 'none',
+ output_modalities: ['audio'],
+ tool_choice: 'none',
+ max_output_tokens: PROGRESS_MAX_OUTPUT_TOKENS,
+ metadata: { gev: PROGRESS_RESPONSE_TAG },
+ instructions: PROGRESS_INSTRUCTIONS,
+ input: [
+ {
+ type: 'message',
+ role: 'user',
+ content: [{ type: 'input_text', text: line }],
+ },
+ ],
+ },
+ },
+ 'client.response_create.progress',
+ );
+ if (!sent) return false;
+ this.progressResponse = {
+ id: null,
+ eventId,
+ generating: true,
+ audible: false,
+ playing: false,
+ retracted: false,
+ stopped: false,
+ };
+ return true;
+ }
+
+ /**
+ * The tool finished: drop a line nobody has heard yet, and let one that is
+ * already audible finish.
+ */
+ retractProgressLine() {
+ const progress = this.progressResponse;
+ if (!progress || progress.audible || !progress.generating) return;
+ progress.retracted = true;
+ if (progress.id) this.cancelResponse(progress.id);
+ }
+
+ /** New intent: stop the progress line, audible or not. */
+ stopProgressLine() {
+ const progress = this.progressResponse;
+ if (!progress || progress.stopped) return;
+ progress.stopped = true;
+ if (progress.generating && progress.id) this.cancelResponse(progress.id);
+ if (progress.playing) {
+ this.sendBestEffort(
+ { type: 'output_audio_buffer.clear' },
+ 'client.output_audio_clear',
+ );
+ }
+ }
+
+ /** Send a client event whose rejection is expected and harmless. */
+ sendBestEffort(message, logEventName) {
+ const eventId = `gev_be_${++this.bestEffortSequence}`;
+ this.bestEffortEventIds.add(eventId);
+ while (this.bestEffortEventIds.size > 16)
+ this.bestEffortEventIds.delete(
+ this.bestEffortEventIds.values().next().value,
+ );
+ return this.sendRealtimeEvent(
+ { ...message, event_id: eventId },
+ logEventName,
+ );
+ }
+
+ cancelResponse(responseId) {
+ return this.sendBestEffort(
+ {
+ type: 'response.cancel',
+ ...(responseId ? { response_id: responseId } : {}),
+ },
+ 'client.response_cancel',
+ );
+ }
+
+ /**
+ * Explicit barge-in (a claimed Space hold while the assistant speaks):
+ * cancel the reply and clear queued audio, the documented WebRTC
+ * interruption; the server truncates the item to what was played. Drops
+ * narration and any queued follow-up. Tools keep running; the user's new
+ * speech supersedes them as usual. Refused while Radio holds the speaker
+ * (prepared, reserved or starting playback), so that takeover stays intact.
+ * @returns {boolean} Whether anything was interrupted.
+ */
+ bargeIn() {
+ if (!this.dc || this.dc.readyState !== 'open') return false;
+ const speaking =
+ this.assistantAudioPlaying ||
+ this.responseActive ||
+ Boolean(this.progressResponse);
+ if (!speaking) return false;
+ if (!this.radio.mayVoiceClaimSpeaker()) return false;
+ const responseId = this.activeResponseId;
+ const audioPlaying = this.assistantAudioPlaying;
+ this.narration?.cancel();
+ this.metrics?.bargeIn();
+ this.pendingResponseInstructions = null;
+ if (this.responseActive) {
+ this.supersedeActiveResponseForUserTurn();
+ this.cancelResponse(responseId);
+ }
+ if (audioPlaying) {
+ this.sendBestEffort(
+ { type: 'output_audio_buffer.clear' },
+ 'client.output_audio_clear',
+ );
+ }
+ this.debugLog('voice.barge_in', { responseId, audioPlaying });
+ return true;
+ }
+
sendToolOutput(callId, result) {
if (!callId || !this.dc || this.dc.readyState !== 'open') return false;
this.sendRealtimeEvent(