mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
i18n: wrap the ru/es push-to-talk hint; show city names in voice results
- The help tray over the mic clipped the longer ru/es hint ("Hold Space
to speak · tap Space to activate focused controls"); let it wrap in
non-English locales. English layout is unchanged.
- The fly-to headline and the nearest-aircraft distance line now show a
preset city in the interface language (Tokyo → Токио / Tokio); speech
sent to the model stays English.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
54f7513ef6
commit
df639a5a06
3 files changed
+59
-2
No files matched your search
+6
-2
@@ -401,7 +401,9 @@ function setLayerVisibility(result, args = {}) {
|
||||
|
||||
function flyToLocation(result) {
|
||||
const label = spokenLabel(result?.label || result?.query || 'there');
|
||||
const title = spokenLabel(result?.label || result?.query) || t('there');
|
||||
const title =
|
||||
spokenLabel(localizePlaceName(result?.label || result?.query)) ||
|
||||
t('there');
|
||||
if (result?.cancelled) return null;
|
||||
if (!result?.ok) {
|
||||
return {
|
||||
@@ -481,7 +483,9 @@ function selectNearestAircraft(result) {
|
||||
);
|
||||
const noun = LAYER_NOUNS[result?.layerId] || 'aircraft';
|
||||
const shownLocation =
|
||||
spokenLabel(result?.location?.label || result?.location) || t('there');
|
||||
spokenLabel(
|
||||
localizePlaceName(result?.location?.label || result?.location),
|
||||
) || t('there');
|
||||
const feed = result?.feed || {};
|
||||
const sources = shownSources(feed.source);
|
||||
if (result?.cancelled) return null;
|
||||
|
||||
Reference in new issue
Block a user