Repository navigation
fix(main): drop stray tr.json keys and split runtime-file-read-client under max-lines - #34929
Conversation
#31180 removed components.native-chat.queuedMessages.cancelEditing, .pasteOrDropImages and .saveNeedsContent from en.json; tr.json, added since, still carried them, so the locale catalog check failed on main. They are the only stray keys in any locale.
Move the remote chunked-download helpers into runtime-remote-file-download.ts so runtime-file-read-client.ts is back under the 300-line lint cap. No behaviour change.
|
No actionable comments were generated in the recent review.
|
ELI5
Main's locale catalog check (
verify:localization-catalogs) fails becausetr.jsonstill has three strings that the English catalog dropped. This PR removes those three strings, so the check passes again.What Changed
From
src/renderer/src/i18n/locales/tr.jsononly, this removes:components.native-chat.queuedMessages.cancelEditingcomponents.native-chat.queuedMessages.pasteOrDropImagescomponents.native-chat.queuedMessages.saveNeedsContent#31180 removed them from
en.json, but the Turkish catalog still carried them. I compared every locale againsten.json(plural suffixes ignored): these three are the only stray keys in any locale. The file was rewritten through a parse round-trip that reproduces it byte-for-byte, so the diff touches only those three entries.Why
The catalog check treats any key missing from
en.jsonas an error, so main's CI fails until these are gone. Nothing references them anymore.This PR also splits
src/renderer/src/runtime/runtime-file-read-client.ts(304 lines) back under the 300-line lint cap, which also fails main. The remote chunked-download helpers move unchanged into a new sibling file,runtime-remote-file-download.ts, and the exports stay the same. The two fixes land together because each one's CI fails on the other's breakage. This replaces #34930.Linked Issue
N/A (maintainer, main CI fix).
Visual Proof
N/A: drops unused translation strings; no UI change.
Testing
All five localization checks pass on this branch:
verify:localization-catalogsverify:localization-catalogverify:localization-runtime-catalogverify:localization-extractionverify:localization-coverageNo test changes are needed; the checks are the test.
Review
Agent skill upstream boundary
Notes
Turkish locale data only. No cross-platform, SSH or mobile impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)