Skip to content

fix(i18n): drop stale item menu keys that break the catalog check on main - #51485

Closed
nwparker wants to merge 1 commit into
mainfrom
bugbash/fix-main-stale-item-menu-keys
Closed

nwparker wants to merge 1 commit into
mainfrom
bugbash/fix-main-stale-item-menu-keys

Conversation

@nwparker

@nwparker nwparker commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Four translation files still had two menu labels that the English source had just moved somewhere else, so the translation check on main fails. This removes the leftovers and keeps the "Cancel" label translated in its new place.

Files Added Deleted Net
Test 0 0 0 0
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4

What Changed

  • es, fr, ja, zh-Hant: removed bots.items.menu.cancel and bots.items.menu.done, which en.json no longer has after feat(bots): Cancel replaces the More menu in item row hover actions #51417.
  • The same four locales: added bots.items.row.cancel, reusing each locale's existing "Cancel" translation (Cancelar / Annuler / キャンセル / 取消). The other locales already have this key.

Why

#51417 moved the item Cancel action from the menu to a row hover action, renaming the keys. The French, Spanish, Japanese and Traditional Chinese translation PRs (#51396, #51394, #51390, #51392) were based on an older main, merged cleanly in git, and brought the removed keys back. verify-localization-catalogs.mjs now fails on main with extra: bots.items.menu.cancel, extra: bots.items.menu.done, which blocks every PR's localization gate.

Testing

  • bun config/scripts/localization/catalog-validation/verify-localization-catalogs.mjs passes (exit 0), and verify-localization-catalog.mjs passes.
  • The diff is 4 files, +4/-8, keys only.

…main

#51417 moved bots.items.menu.cancel/done to bots.items.row.*, while the
fr/es/ja/zh-Hant desktop translation PRs merged with the old keys. The
catalog verifier now fails on main with 'extra' keys. Remove the stale
pair and carry each locale's existing Cancel translation to
bots.items.row.cancel.
@nwparker

Copy link
Copy Markdown
Contributor Author

Folded into #51478, since each fix would fail CI on the other's break.

@nwparker nwparker closed this Nov 28, 2026
@nwparker
nwparker deleted the bugbash/fix-main-stale-item-menu-keys branch November 28, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant