mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
feat(i18n): locale core + English catalogs + parity gates
Add the i18n foundation: src/i18n/locale.js (locale resolution with a configurable GEV_DEFAULT_LOCALE / GEV_SECONDARY_LOCALE pair, guarded preference storage, one-shot ?lang= override, <html lang>/<html dir> metadata) and src/i18n/index.js (catalog registry, t(), Intl formatters, applyDocumentTranslations, persistLocaleAndReload). English is the only shipped locale in this PR: the four en catalogs (shell/cockpit/layers/setup) are the reference and the always-shipped fallback, the built-in pair degenerates to en-only, and English output is byte-identical to the strings these replace. Parity gates land with the core (catalog key/placeholder/plural-shape parity, markup coverage of every data-i18n* attribute, repair-pass anchors pinning en byte-identity); additional locales ship as stacked follow-up PRs through the recipe in docs/TRANSLATORS.md. Rebased onto current main: the client defines live in build/vite.js / server/standalone/vite.config.js as before.
This commit is contained in:
1 parent
e7707d9a0f
commit
bde1e430ef
12 files changed
+2702
No files matched your search
@@ -0,0 +1,560 @@
|
||||
// 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.styleNameNoir': 'Noir',
|
||||
'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',
|
||||
};
|
||||
@@ -0,0 +1,501 @@
|
||||
// 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.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.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 LIVE traffic flow',
|
||||
'traffic.liveCoverage': 'LIVE · TomTom flow · {percent}% cov',
|
||||
'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.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',
|
||||
};
|
||||
@@ -0,0 +1,211 @@
|
||||
// English catalog — setup namespace (phase-1 seed).
|
||||
//
|
||||
// Owns first-launch onboarding, in-app key setup (Provider Settings), scene
|
||||
// recipes, and voice-control chrome. Keys are namespace-relative; the registry
|
||||
// prefixes them with `setup.`.
|
||||
export const NAMESPACE = 'setup';
|
||||
|
||||
export default {
|
||||
// index.html #first-run-launcher header/title/choices
|
||||
'firstRun.kicker': 'MISSION CONTROL · FIRST LAUNCH',
|
||||
'firstRun.title': 'Choose your first view',
|
||||
'firstRun.choice.contacts': 'LIVE CONTACTS',
|
||||
'firstRun.suppress': "Don't show this again",
|
||||
// index.html #key-setup-chip / #key-setup dialog
|
||||
'keySetup.chip': 'POWER UP',
|
||||
'keySetup.kicker': 'GROUND STATION · PROVIDER SETTINGS',
|
||||
'keySetup.title': 'Power up the globe',
|
||||
'keySetup.apply': 'SAVE KEYS',
|
||||
// src/keySetup.js submitUpdates() status announcement
|
||||
'keySetup.status.saving': 'Saving…',
|
||||
|
||||
// ── 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
|
||||
// support-worker surfaces (first-run, key setup, scene director) whose
|
||||
// runtime paths land here in phase 3.
|
||||
|
||||
// index.html #first-run-launcher
|
||||
// Owner-authored persuasive line, pinned verbatim by firstRunExperience.test.mjs
|
||||
// (unspaced em dash included) — keep the exact string when translating.
|
||||
'firstRun.description':
|
||||
'It feels like a forbidden cockpit—then you realize the sources are public and the data is real.',
|
||||
'firstRun.choice.contactsSub': 'Aircraft, vessels and nearby intelligence',
|
||||
'firstRun.choice.spaceMissions': 'SPACE MISSIONS',
|
||||
'firstRun.choice.spaceMissionsSub':
|
||||
'Launches, spacecraft and orbital context',
|
||||
'firstRun.choice.explore': 'EXPLORE MANUALLY',
|
||||
'firstRun.choice.exploreSub': 'Begin with a clean globe',
|
||||
'firstRun.dismissHint': 'ESC to dismiss',
|
||||
// Initial status tip; firstRunExperience.js swaps it for progress/errors.
|
||||
'firstRun.note':
|
||||
'Tip: the GEV MIC button in the dock lets you talk to the map.',
|
||||
// NOT seeded: the environmental tile's <strong>/<small> are pinned verbatim
|
||||
// by firstRunExperience.test.mjs (and the title is painted from
|
||||
// ENVIRONMENTAL_LABEL_CHOICE at init) — the support worker wires them in
|
||||
// phase 3 together with the test update.
|
||||
|
||||
// index.html #key-setup
|
||||
'keySetup.closeAriaLabel': 'Close key setup',
|
||||
'keySetup.description':
|
||||
"The globe already flies keyless. Every key below switches on another real feed — paste one and it's saved into this app's local configuration, then the server restarts itself. Server-side keys stay on this machine; Google Maps and Cesium ion run in the browser and must be provider-restricted. Keys you configured elsewhere are shown but never touched.",
|
||||
'keySetup.hint': 'ESC to close',
|
||||
'keySetup.note':
|
||||
'The Google Maps key buys the photorealistic planet — everything else stacks on top.',
|
||||
|
||||
// index.html scene director panel chrome (src/scenes/director.js surface)
|
||||
'scenes.panelTitle': 'SCENES',
|
||||
'scenes.collapseTitle': 'Collapse panel',
|
||||
'scenes.recipeAriaLabel': 'Scene recipe',
|
||||
'scenes.new': 'NEW',
|
||||
'scenes.delete': 'DEL',
|
||||
'scenes.capture': 'CAPTURE SHOT',
|
||||
'scenes.updateShot': 'UPDATE SHOT',
|
||||
'scenes.start': 'START',
|
||||
'scenes.stop': 'STOP',
|
||||
'scenes.next': 'NEXT',
|
||||
'scenes.exportPresets': 'EXPORT PRESETS',
|
||||
'scenes.import': 'IMPORT',
|
||||
'scenes.runLog': 'RUN LOG',
|
||||
'scenes.statusReady': 'Ready',
|
||||
|
||||
// ── Phase-3 runtime extraction (support surfaces), appended ───────────────
|
||||
|
||||
// src/firstRunExperience.js — mission busy lines and status/error copy.
|
||||
// {detail} is the failed layer-id list (machine values, kept raw).
|
||||
'firstRun.busy.contacts': 'Starting live contacts…',
|
||||
'firstRun.busy.spaceMissions': 'Opening space missions…',
|
||||
'firstRun.busy.environmental': 'Scanning active events…',
|
||||
'firstRun.busy.working': 'Working…',
|
||||
'firstRun.status.failed':
|
||||
'Could not open that mission{detail}. Retry or explore manually.',
|
||||
'firstRun.status.storageBlocked':
|
||||
'This browser is blocking storage, so that could not be saved.',
|
||||
// The environmental tile is painted at init from ENVIRONMENTAL_LABEL_CHOICE;
|
||||
// the subcopy names BOTH feeds (pinned verbatim by firstRunExperience.test.mjs).
|
||||
'firstRun.choice.environmentalSub':
|
||||
'Live earthquakes and active fires, from USGS and NASA',
|
||||
'firstRun.environmentalTitle.environmental': 'ENVIRONMENTAL',
|
||||
'firstRun.environmentalTitle.earthWatch': 'EARTH WATCH',
|
||||
'firstRun.environmentalTitle.activeEvents': 'ACTIVE EVENTS',
|
||||
|
||||
// src/keySetup.js — chip counter, status line, and remove confirm.
|
||||
'keySetup.chipWaiting': {
|
||||
one: 'POWER UP · {count} KEY WAITING',
|
||||
other: 'POWER UP · {count} KEYS WAITING',
|
||||
},
|
||||
'keySetup.chipReady': 'POWERED UP',
|
||||
'keySetup.status.saveFailed': 'Save failed ({status}).',
|
||||
'keySetup.status.saveFailedDetail': 'Save failed: {detail}',
|
||||
'keySetup.status.pasteFirst': 'Paste at least one key first.',
|
||||
'keySetup.status.saved':
|
||||
'Saved to {store}. Restarting — this page reloads itself.',
|
||||
'keySetup.status.removed':
|
||||
'Removed from {store}. Restarting — this page reloads itself.',
|
||||
'keySetup.store.pinokio': 'your app configuration',
|
||||
'keySetup.store.env': 'your local .env',
|
||||
'keySetup.confirm.remove': 'Remove this key from your saved configuration?',
|
||||
|
||||
// src/mapStackChips.js — unavailable-chip tooltip and aria templates.
|
||||
'mapStack.fallbackName': 'This map stack',
|
||||
'mapStack.unavailableReason': '{label} is unavailable',
|
||||
'mapStack.unavailableAriaLabel': '{label} unavailable: {hint}',
|
||||
|
||||
// src/scenes/director.js — built-in recipe DISPLAY names only. Recipe ids
|
||||
// and the URL 'scene' param stay English; stored/renamed project titles are
|
||||
// user data and render verbatim.
|
||||
'scenes.recipe.flightsRadar': 'Global Flights Radar',
|
||||
'scenes.recipe.orbitalWatch': 'Orbital Watch',
|
||||
'scenes.recipe.thermalThreats': 'Thermal Threat Board',
|
||||
'scenes.recipe.cityOverload': 'City Overload',
|
||||
'scenes.recipe.omnisciencePullback': 'Omniscience Pullback',
|
||||
|
||||
// src/voice/gevRealtime.js — mic chrome and connection/execution STATUS
|
||||
// text. Status enum keys (idle/connecting/…) are machine values; tool
|
||||
// names/schemas and model-facing results stay English (keep-English
|
||||
// boundary). Tier badges STD/MINI and the MIC/ON-OFF mic label stay machine
|
||||
// identifiers this phase.
|
||||
'voice.status.idle': 'OFF',
|
||||
'voice.status.connecting': 'CONNECTING',
|
||||
'voice.status.listening': 'LISTENING',
|
||||
'voice.status.executing': 'EXECUTING',
|
||||
'voice.status.error': 'ERROR',
|
||||
'voice.status.sessionCostCap': 'Session ended — cost cap {cost}',
|
||||
'voice.detail.standby': 'VOICE STANDBY',
|
||||
'voice.detail.active': 'VOICE ACTIVE',
|
||||
'voice.detail.unavailable': 'VOICE UNAVAILABLE',
|
||||
'voice.detail.microphoneUnavailable': 'WebRTC microphone support unavailable',
|
||||
'voice.detail.requestingMicrophone': 'Requesting microphone',
|
||||
'voice.detail.holdSpaceTalk': 'Hold Space to talk',
|
||||
'voice.detail.releaseSpaceSend': 'Release Space to send',
|
||||
'voice.detail.askOrCommand': 'Ask or command',
|
||||
'voice.detail.voiceOff': 'Voice off',
|
||||
'voice.detail.runningCommand': 'Running command',
|
||||
'voice.detail.radioDidNotStart': 'Radio did not start',
|
||||
'voice.hint.default':
|
||||
'Hold Space to speak · tap Space to activate focused controls',
|
||||
'voice.error.sessionStart': 'Voice session could not be started.',
|
||||
'voice.error.trayTitle': 'VOICE SYSTEM ERROR',
|
||||
'voice.error.dismiss': 'DISMISS',
|
||||
'voice.error.hint':
|
||||
'Check microphone permission and network access, then try again.',
|
||||
'voice.kicker.agent': 'AI AGENT',
|
||||
'voice.kicker.control': 'VOICE CONTROL',
|
||||
'voice.tier.appliesNextSession': '{tier} applies next session',
|
||||
'voice.tier.buttonTitle': 'Voice model tier — applies next session',
|
||||
'voice.cost.buttonTitle': 'Estimated session cost',
|
||||
'voice.button.ariaLabel':
|
||||
'Voice control — activate to toggle voice; hold Space to speak',
|
||||
|
||||
// ── Stage-4 repair pass: src/scenes/director.js status corpus, appended ───
|
||||
// Status/confirm lines and the default shot title. {scene}/{shot} carry
|
||||
// stored project titles (user data, rendered verbatim); {mode} is the raw
|
||||
// context-mode identifier (machine value, keep-English boundary).
|
||||
'scenes.status.captureCameraNotReady':
|
||||
'Cannot capture shot: camera not ready',
|
||||
'scenes.status.shotTitleDefault': 'Shot {n}',
|
||||
'scenes.status.captured': 'Captured: {scene} / {shot}',
|
||||
'scenes.status.selectShotFirst': 'Select a shot first',
|
||||
'scenes.status.updated': 'Updated: {scene} / {shot}',
|
||||
'scenes.status.deleteShotConfirm': 'Delete shot "{shot}"?',
|
||||
'scenes.status.loaded': 'Loaded: {scene} / {shot}',
|
||||
'scenes.status.cameraUnavailable': 'Camera unavailable — exit cockpit first',
|
||||
'scenes.status.noShotsToRun': 'No shots to run',
|
||||
'scenes.status.runningShot': 'Running {index}/{total}: {scene} / {shot}',
|
||||
'scenes.status.runComplete': 'Scene run complete',
|
||||
'scenes.status.runError': 'Error: {message}',
|
||||
'scenes.status.contextExitFailed':
|
||||
'Could not exit {mode} — scene layers may be refused',
|
||||
|
||||
// ── Stage-4 repair pass: keySetup dev-surface copy, appended ──────────────
|
||||
// src/keySetup.js buildRow() remove chrome (dev-server-only surface).
|
||||
'keySetup.row.remove': 'REMOVE',
|
||||
'keySetup.row.removeTitle': "Remove {title} from this app's saved keys",
|
||||
// src/keySetupCore.mjs keySetupRequirement(): availability sentence naming
|
||||
// the registry env vars (machine values stay raw).
|
||||
'keySetup.requirement': 'Needs {envVars} — add it in Provider Settings',
|
||||
// src/keySetupCore.mjs KEY_SETUP_KEYS `unlocks` copy, keyed by registry id;
|
||||
// en values must stay byte-identical to the registry strings.
|
||||
'keySetup.unlocks.google-maps': 'The photorealistic 3D planet + place search',
|
||||
'keySetup.unlocks.google-maps-server':
|
||||
'Places context + Street View fallback; optional separate key',
|
||||
'keySetup.unlocks.openai': 'Voice control — talk to the planet',
|
||||
'keySetup.unlocks.aisstream': 'Live ships, worldwide',
|
||||
'keySetup.unlocks.firms': 'Live active-fire detections',
|
||||
'keySetup.unlocks.tomtom': 'Real live traffic (keyless runs a simulation)',
|
||||
'keySetup.unlocks.cesium-ion': 'Bing imagery map stacks + world terrain',
|
||||
'keySetup.unlocks.opensky':
|
||||
'More flight-polling credits (anonymous works without)',
|
||||
'keySetup.unlocks.launch-library': 'Higher space-missions request allowance',
|
||||
|
||||
'scenes.status.actionFailed': 'Scene action failed',
|
||||
|
||||
'scenes.status.projectExported': 'Project exported',
|
||||
|
||||
'voice.tierNextSession':
|
||||
'Next session: {pendingId} — this session stays on {modelId}',
|
||||
'voice.tierSwitchHint':
|
||||
'Voice model: {pendingId} — click to switch to {target}; applies next session',
|
||||
'voice.costTooltip':
|
||||
'Estimated session cost on {modelId} — {responses} response(s). Warns at {warn}, ends the session at {cap}.',
|
||||
};
|
||||
@@ -0,0 +1,82 @@
|
||||
// English catalog — shell namespace (phase-1 seed).
|
||||
//
|
||||
// Owns the global application chrome: title bar, loader status, top-center
|
||||
// actions, panel titles, and the shared global status surface. Keys are
|
||||
// namespace-relative; the registry in src/i18n/index.js prefixes them with
|
||||
// `shell.`. Values are plain strings or { one, other } plural variant objects
|
||||
// with named {placeholder} interpolation.
|
||||
export const NAMESPACE = 'shell';
|
||||
|
||||
export default {
|
||||
// index.html #title-bar .subtitle
|
||||
'title.subtitle': 'NO PLACE LEFT BEHIND',
|
||||
// index.html .loader-status (initial paint)
|
||||
'loading.initialStatus': 'Initializing photorealistic world...',
|
||||
// src/main.js init() loaderStatus writes
|
||||
'loading.status.configuring': 'Configuring viewer...',
|
||||
'loading.status.tilesUnavailable':
|
||||
'Google 3D Tiles unavailable ({detail}). Loading the keyless globe...',
|
||||
'loading.status.flying': 'Flying to Austin, TX...',
|
||||
'loading.status.restoring': 'Restoring shared view...',
|
||||
// index.html #global-loading-label (initial) and
|
||||
// src/loadingFeedback.js presentLoadingFeedback() labels
|
||||
'status.loadingLiveData': 'LOADING LIVE DATA',
|
||||
'status.loadComplete': 'LOAD COMPLETE',
|
||||
'status.loadFailed': 'LOAD FAILED',
|
||||
'status.loadCancelled': 'LOAD CANCELLED',
|
||||
// index.html #traffic-sync-label (initial) and
|
||||
// src/loadingFeedback.js reduceTrafficSyncFeedback() neutral fallback
|
||||
'status.trafficSyncing': 'syncing road network',
|
||||
'status.retryingIn': 'retrying in {seconds}s',
|
||||
'status.retryPending': 'retry pending',
|
||||
// index.html #top-center-actions buttons
|
||||
'actions.clearLayers.ariaLabel': 'Clear selected data layers',
|
||||
'actions.clearLayers.title': 'Turn off all selected data layers',
|
||||
'actions.share.ariaLabel': 'Copy share link',
|
||||
'actions.resetView.ariaLabel': 'Reset to full globe view',
|
||||
// index.html #data-toggles panel header
|
||||
'panels.dataLayers': 'DATA LAYERS',
|
||||
// index.html .panel-collapse-btn on #data-panel
|
||||
'panels.collapseTitle': 'Collapse panel',
|
||||
|
||||
// ── Phase-2 static markup extraction (index.html), appended ──────────────
|
||||
// index.html #command-dock nav region
|
||||
'dock.ariaLabel': 'Navigation, voice, and visual preset controls',
|
||||
// index.html #top-center-actions nav
|
||||
'actions.navAriaLabel': 'Globe actions',
|
||||
'actions.share.title': 'Copy share link',
|
||||
'actions.resetView.title': 'Reset camera and return to full globe view',
|
||||
// index.html #cctv-sync-label (initial); src/ui.js setSplitFlapText() fallback
|
||||
'status.framesLoading': 'loading frames',
|
||||
|
||||
// Locale selector (index.html #control-panel tray): the group container is
|
||||
// static; its buttons are runtime-rendered by ui.js _initLocaleSelector()
|
||||
// from the configured locale pair (keys at the end of this file).
|
||||
'locale.groupAriaLabel': 'Language',
|
||||
|
||||
// ── Phase-3 runtime extraction (support worker), appended ─────────────────
|
||||
// src/main.js init() loaderStatus write sites without a phase-1/2 key.
|
||||
'loading.status.tilesGoogle': 'Loading Google 3D Tiles...',
|
||||
'loading.status.tilesKeyless': 'Loading the keyless globe...',
|
||||
'loading.status.systems': 'Initializing systems...',
|
||||
// src/loadingFeedback.js presentLoadingFeedback() labels beyond the phase-1
|
||||
// seeds. 'OpenStreetMap · Overpass' detail strings are provider names and
|
||||
// stay verbatim at the call site.
|
||||
'status.liveDataOff': 'LIVE DATA OFF',
|
||||
'status.mappedSitesLoaded': 'MAPPED SITES LOADED',
|
||||
'status.retryingMappedSites': 'RETRYING MAPPED SITES',
|
||||
'status.fetchingMappedSites': 'FETCHING MAPPED SITES',
|
||||
'status.turningOffLiveData': 'TURNING OFF LIVE DATA',
|
||||
'status.refreshingLiveData': 'REFRESHING LIVE DATA',
|
||||
|
||||
// ── Configurable locale pair (GEV_DEFAULT_LOCALE / GEV_SECONDARY_LOCALE,
|
||||
// vite.config.js client defines), appended ────────────────────────────
|
||||
// ui.js _initLocaleSelector() renders one runtime button per offered
|
||||
// locale and reads shell.locale.<code>.ariaLabel for its aria-label.
|
||||
// Only SHIPPED locales get a key: each locale PR appends its label to every
|
||||
// shipped catalog (docs/TRANSLATORS.md), so an unshipped locale can never
|
||||
// render a selector button.
|
||||
'locale.en.ariaLabel': 'Switch to English',
|
||||
|
||||
'credits.closeAria': 'Close data attribution',
|
||||
};
|
||||
Reference in new issue
Block a user