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
@@ -14,7 +14,12 @@ import { t } from '../i18n/index.js';
|
||||
*/
|
||||
export function photorealUnavailableReason(hasCredentials) {
|
||||
if (hasCredentials)
|
||||
return "Google 3D tiles unavailable — check the key's API restrictions, quota, or network";
|
||||
return t(
|
||||
"Google 3D tiles unavailable — check the key's API restrictions, quota, or network",
|
||||
);
|
||||
const envVars = keySetupRequirementEnvVars('google-maps');
|
||||
return `${t('Needs {envVars} — add it in Provider Settings', { envVars })} — or a Cesium ion token for the ion-hosted route`;
|
||||
return t(
|
||||
'Needs {envVars} — add it in Provider Settings — or a Cesium ion token for the ion-hosted route',
|
||||
{ envVars },
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user