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

+21 -1
View File
@@ -1,7 +1,13 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { APPLICATION_LAYER_METADATA } from '../app/constructCatalog.js';
import { LAYER_NAME_KEYS, PANEL_LABEL_KEYS } from './layerNames.js';
import { setLocale, t } from '../i18n/index.js';
import { FEED_SOURCE, COMBINED_SOURCE } from '../layers/localAdsb/status.js';
import {
LAYER_NAME_KEYS,
PANEL_LABEL_KEYS,
sourceLabel,
} from './layerNames.js';
// Layers whose module name is a proper name and stays as it is in every
// language: the Bhote Koshi pair belong to a scripted scene.
@@ -31,3 +37,17 @@ test('the name tables list only catalog layers', () => {
].filter((id) => !catalogIds.includes(id));
assert.deepEqual(unknown, []);
});
for (const locale of ['es', 'ru']) {
test(`${locale}: Local ADS-B source names translate without their own entry`, () => {
setLocale(locale);
try {
for (const source of [FEED_SOURCE, COMBINED_SOURCE]) {
assert.notEqual(t(source), source, 'the catalog has the entry');
assert.equal(sourceLabel(source), t(source));
}
} finally {
setLocale('en');
}
});
}