Skip to content

fix(desktop): drop duplicate history.filter* keys breaking wails build#3415

Merged
esengine merged 1 commit into
main-v2from
fix/locale-dup-history-filter-keys
Jun 7, 2026
Merged

fix(desktop): drop duplicate history.filter* keys breaking wails build#3415
esengine merged 1 commit into
main-v2from
fix/locale-dup-history-filter-keys

Conversation

@esengine

@esengine esengine commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Problem

Fixes #3410wails build fails on main-v2 with TS1117: An object literal cannot have multiple properties with the same name in src/locales/en.ts. The desktop dev build is broken.

Root cause

en.ts and zh.ts each carried two identical blocks of the ten history.filter* keys — an earlier history PR added them, then #3408 added the same set again. The blocks merged cleanly as text (appended at different offsets) but duplicate object properties are a TS error. The desktop CI job stubs the embedded frontend and never runs tsc, so the duplicates passed every check.

Fix

Removed the redundant second block in each file (identical values; kept the first). Verified tsc --noEmit is clean afterward.

Note

This class of breakage (frontend-only TS errors slipping past CI) will recur until the desktop CI job runs tsc on the frontend — worth a follow-up.

en.ts and zh.ts each carried two identical blocks of the ten
history.filter* keys: an earlier history PR added them, then #3408 added
the same set again. The two blocks merged cleanly as text (appended at
different offsets) but produced duplicate object properties, so tsc and
`wails build` failed with TS1117 (#3410). The desktop CI job stubs the
embedded frontend and never runs tsc, so the duplicates passed every
check. Removed the redundant second block in each file (identical values;
kept the first). Verified tsc --noEmit is clean after the fix.

Fixes #3410
@esengine esengine requested a review from SivanCola as a code owner June 7, 2026 03:18
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) and removed v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 7, 2026
@esengine esengine merged commit bc3fb65 into main-v2 Jun 7, 2026
10 checks passed
@esengine esengine deleted the fix/locale-dup-history-filter-keys branch June 7, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 开发版本无法构建[desktop]

1 participant