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

+3 -6
View File
@@ -6,9 +6,7 @@ import {
missingTemplate,
} from '../../scripts/i18n.mjs';
// A plural entry whose every form is still the English text must be reported
// the same way a string entry is ("is still English"). Today the plural
// branch of checkCatalog never compares forms with the English.
// A plural entry with forms left in English is reported like a string entry.
const fixture = new Map([
['{count} cameras', { plural: true, one: '{count} camera' }],
['Save keys', { plural: false }],
@@ -64,9 +62,8 @@ for (const [locale, entry] of [
});
}
// `npm run i18n -- --missing <code>` prints a template; pasted without edits,
// none of its entries may pass as a translation (K-21, K-52), and a plural
// entry carries every form the language needs (K-97).
// The `--missing` template, pasted without edits, must fail entry by entry,
// and its plural entries carry every form the language needs.
const messages = extractMessages();
for (const locale of ['de', 'ja', 'es', 'ru']) {
test(`${locale}: an untouched --missing template fails the check entry by entry`, () => {