mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
fix(i18n): toast, boot labels and AI tool text found in review
- The Space Missions cancellation failure toast read "[object Object]" in every language: the options object was passed as the message. The English message is the second argument again, the translation the third. - Header text is translated before panel chrome builds its collapse labels, so the dock and display toggles no longer read "Expand VISUAL PRESETS" in another language. - The voice "show data layers" result keeps the English layer name (row data-layer-name), not the translated row text. - The Google 3D unavailable reason is translated in full. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
9d01f9bfcd
commit
0c647a791b
7 files changed
+27
-6
No files matched your search
@@ -3003,7 +3003,11 @@ function focusDataLayerRow(layerId) {
|
||||
void row.offsetWidth;
|
||||
row.classList.add('gev-voice-focus');
|
||||
window.setTimeout(() => row.classList.remove('gev-voice-focus'), 3000);
|
||||
const name = row.querySelector('.data-name')?.textContent?.trim() || layerId;
|
||||
// The English name: tool results stay English whatever the UI language.
|
||||
const name =
|
||||
row.dataset.layerName ||
|
||||
row.querySelector('.data-name')?.textContent?.trim() ||
|
||||
layerId;
|
||||
return { id: layerId, name };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user