From 8f48b11f6a498992868e466c6d427552b88eb236 Mon Sep 17 00:00:00 2001 From: Alexander Brown Date: Sat, 21 Feb 2026 15:26:37 -0800 Subject: [PATCH] fix: resolve missing i18n key warnings (#9064) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Fix multiple i18n missing key console warnings by correcting key paths and adding missing translations. ## Changes - **What**: - `ScrubableNumberInput`: Fixed references to non-existent `g.ariaLabel.decrement`/`g.ariaLabel.increment` keys → use `g.decrement`/`g.increment` - `SidebarIcon`: Replaced `t()` with `st()` (safe translate) to prevent double-translation when parent components pass pre-translated strings - `en/main.json`: Added missing `menuLabels.Copy`, `menuLabels.Paste`, `menuLabels.Select All` keys ## Review Focus The `SidebarIcon` change from `t()` to `st()` is the key design decision. `SidebarIcon` receives both i18n keys (from sidebar tabs via `SideToolbar`) and pre-translated strings (from dedicated sidebar button components). Using `st()` (which checks `te()` before translating) handles both cases without warnings. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9064-fix-resolve-missing-i18n-key-warnings-30e6d73d3650816eaad3ce030f9c1d3f) by [Unito](https://www.unito.io) --------- Co-authored-by: Amp --- src/components/common/ScrubableNumberInput.vue | 4 ++-- src/components/sidebar/SidebarIcon.vue | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/common/ScrubableNumberInput.vue b/src/components/common/ScrubableNumberInput.vue index 6c5765c08d..df13408ef3 100644 --- a/src/components/common/ScrubableNumberInput.vue +++ b/src/components/common/ScrubableNumberInput.vue @@ -6,7 +6,7 @@ @@ -50,12 +50,10 @@