i18n: fix the LGTM review findings and tidy the branch texts

- i18n scanner: lastError sink, no false sinks on defaults and ternaries
- shared src/i18n/marker.js for modules that only mark strings
- wind field messages move to wind/fields.js; CITY_POIS imports from cityPois.js
- drop review IDs, change history and stale references from comments and docs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
German KhokhlovandClaude Opus 5.5 committed 2026-10-16 21:00:28 +04:00
1 parent 0ed05568f7
commit 20f4cf3763
178 files changed
+918 -948

No files matched your search

+5 -5
View File
@@ -1,5 +1,5 @@
// K-24: on a failed tool step the voice card shows the English `result.error`
// from gevActions under a translated title and step status.
// A failed tool step: the card shows the tool error in the UI language; the
// result keeps gevActions' English for the model.
import assert from 'node:assert/strict';
import test from 'node:test';
import { setLocale } from '../i18n/index.js';
@@ -10,7 +10,7 @@ import {
voiceCardView,
} from './voiceCardPresentation.js';
// Error texts as gevActions.js builds them (lines 2442, 646–647, 2476).
// Error texts as gevActions.js builds them (frameOverhead, select_nearest_aircraft).
const CASES = [
{
name: 'frame_overhead',
@@ -76,13 +76,13 @@ for (const locale of ['es', 'ru']) {
try {
assert.ok(view.result.visible, 'card shows a result');
assert.notEqual(view.result.title, '', 'card has a title');
// Title and step status are translated (this part passes today).
// Title and step status are translated.
assert.notEqual(
view.steps[0].statusText,
'failed',
'step status translated',
);
// The failure line is the raw English tool error.
// The error line is translated, not the raw English.
for (const line of view.result.lines) {
assert.ok(
!/\b(is not enabled|no airborne aircraft|of the current view)\b/.test(