fix(i18n): translate mapped-site feedback by its shape where it is shown

Add the Mapped Installations feedback shapes (site counts in view or
around the contact, and the Overpass retry lines) to statusText.js, and
show statusMessage through translateStatusPiece in the Layers panel, the
nearby-search toast and the awareness panel. The voice card's analyst
notes already fall back to translateStatusLine, so they pick the shapes
up too.
This commit is contained in:
daikaginza committed 2026-10-17 07:28:26 +07:00
1 parent 93ea088f45
commit dddd1fa03f
6 files changed
+88 -14

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import { t } from '../i18n/index.js';
import { translateStatusPiece } from './statusText.js';
import { shouldExpandGlobalContextPanel } from '../rightRailPolicy.js';
export function _initGlobalContextPanel() {
@@ -109,7 +110,7 @@ export function _initGlobalContextPanel() {
if (this.destroyed || searched === false) return false;
const stats = this.installations.getStats?.();
this.showToast(
stats?.statusMessage ||
(stats?.statusMessage && translateStatusPiece(stats.statusMessage)) ||
(stats?.status === 'zoom-in'
? t('Zoom in to search mapped installations')
: t('Nearby installations refreshed')),