Skip to content

RI-8278 i18n: migrate keyboard shortcuts - #6404

Open
valkirilov wants to merge 3 commits into
fe/feature/RI-8278/i18n-command-markdownfrom
fe/feature/RI-8278/i18n-keyboard-shortcuts
Open

RI-8278 i18n: migrate keyboard shortcuts#6404
valkirilov wants to merge 3 commits into
fe/feature/RI-8278/i18n-command-markdownfrom
fe/feature/RI-8278/i18n-keyboard-shortcuts

Conversation

@valkirilov

@valkirilov valkirilov commented Aug 12, 2026

Copy link
Copy Markdown
Member

Summary

Third and last of 3 PRs for RI-8278. Stacked on #6403 — only the last two commits are new here.

  • Cleaned up keyboardShortcuts.tsx: it had two near-identical copies of the shortcut list (one for macOS, one for everything else). Merged into one.
  • Keyboard shortcuts drawer: the title, column headers, group headings, and all 13 shortcut descriptions are now translatable.
  • RDI job page: the "Open a dedicated SQL or JMESPath editor" tooltip is now translatable.

Two small wording changes on macOS only, worth a second look:

  • The Workbench "Run" shortcut said "Run Commands" on macOS and "Run Command" everywhere else — unified to "Run Command".
  • The RDI editor shortcut had a stray trailing colon on non-macOS only — removed.

Stack

  1. RI-8278 i18n: migrate shared text and help-text constants #6402
  2. RI-8278 i18n: migrate command markdown texts #6403
  3. This PR

Test plan

  • Automated checks pass (lint, type-check, translation file checks, existing tests)
  • Manual check in English and Bulgarian, ideally on macOS to see the two changed strings: open the shortcuts drawer, and the RDI job page's editor tooltip

Note

Low Risk
UI/i18n-only changes with no auth, security, or data-handling impact. Main risk is missing translation keys or unintended Mac vs non-Mac copy differences after the merge.

Overview
Makes keyboard shortcut UI copy translatable and cleans up the shortcut definitions.

Merges the duplicated Mac/non-Mac lists in keyboardShortcuts.tsx into one KEYBOARD_SHORTCUTS object with platform-conditional keys. Shortcut entries now store descriptionKey instead of hardcoded English description text.

Wires i18n through the shortcuts drawer (title, column headers, group names, and all descriptions) and the RDI job page dedicated-editor tooltip. Adds matching shortcuts.* keys to en.json and bg.json.

Also unifies two small wording inconsistencies: Workbench run text to "Run Command", and removes a stray trailing colon from the RDI editor shortcut description.

Reviewed by Cursor Bugbot for commit 238ca72. Bugbot is set up for automated code reviews on this repo. Configure here.

MAC_SHORTCUTS and COMMON_SHORTCUTS repeated the same 13 shortcuts,
diverging only in the rendered key symbols and two descriptions that
turned out to be unintentional (Run Command/Commands, a stray colon
on the RDI editor shortcut). Merging them into one object keyed by
isMac removes the duplication and the dead label field.

References: RI-8278
Resolves the last hardcoded English in constants/keyboardShortcuts.tsx.
Also translates the shortcuts drawer's own chrome (title, column
headers, group headings), which the description cell renderer already
had to touch.

References: RI-8278
@valkirilov
valkirilov requested a review from a team as a code owner August 12, 2026 09:50
@valkirilov valkirilov self-assigned this Aug 12, 2026
@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 83.59% 28849/34511
🟡 Branches 69.69% 12273/17611
🟡 Functions 78.65% 7621/9690
🟢 Lines 84.05% 28044/33364

Test suite run success

8032 tests passing in 871 suites.

Report generated by 🧪jest coverage report action from 238ca72

…hover

Автоматично дописване is the accepted Bulgarian term for autocomplete, not Автодовършване. Also add a title attribute to the shortcuts description cell so truncated text is readable on hover.
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.

2 participants