You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ShortcutGrid: Add internationalization (i18n) support for Shortcut grid component #909
The Shortcut component (used by ShortcutGrid) currently has hardcoded English strings for mouse action labels with no way to internationalize them for applications that need to support multiple languages.
Current hardcoded strings
"Hover" (line 38 of Shortcut.tsx)
"Click" (line 45)
"Right click" (line 48)
"Drag" (line 51)
"Drag + Drop" (line 54)
These are rendered inside Label components alongside a MouseIcon when the corresponding boolean props (hover, click, rightClick, drag, dragAndDrop) are set to true.
Proposed solution
Add optional label props for each mouse action to allow customization of all user-facing strings:
exportinterfaceShortcutProps{// ... existing props/** Custom label for "Hover" mouse action */hoverLabel?: string;/** Custom label for "Click" mouse action */clickLabel?: string;/** Custom label for "Right click" mouse action */rightClickLabel?: string;/** Custom label for "Drag" mouse action */dragLabel?: string;/** Custom label for "Drag + Drop" mouse action */dragAndDropLabel?: string;}
These would default to the current English strings for backwards compatibility.
changed the title [-]Shortcut: Add internationalization (i18n) support for Shortcut grid component[/-][+]ShortcutGrid: Add internationalization (i18n) support for Shortcut grid component[/+]on Mar 31, 2026
Activity
[-]Shortcut: Add internationalization (i18n) support for Shortcut grid component[/-][+]ShortcutGrid: Add internationalization (i18n) support for Shortcut grid component[/+]sg00dwin commentedon Apr 1, 2026
Related #910