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

+4 -10
View File
@@ -1,14 +1,8 @@
/**
* The reason shown in «Scene not saved — {reason}» when the project fails its
* own validation on save.
*
* A SceneDocumentError names a JSON path and an English check
* («$.scenes[6].title: expected nonempty text, at most 4096 characters») —
* right for the console and for import diagnostics, meaningless in a toast.
* The failures an author can cause from the panel get a plain sentence with
* 1-based scene and shot numbers. Anything else keeps the technical text in
* English and gets a general sentence in a translation; director.js logs the
* error either way.
* The reason for «Scene not saved — {reason}» when the project fails
* validation. The validator's text («$.scenes[6].title: expected …») is for
* the console: known failures get a sentence with 1-based numbers, others a
* general one (English keeps the raw text). director.js logs the full error.
*/
import { formatNumber, getLocale, t } from '../i18n/index.js';