Add translation in keyboard shortcut (#838)
This commit is contained in:
parent
18da1578cf
commit
ae536d0be6
3 changed files with 9 additions and 3 deletions
|
@ -102,7 +102,9 @@ export function KeyboardShortcutDialog({
|
||||||
<StyledColumns bp={breakpoints}>
|
<StyledColumns bp={breakpoints}>
|
||||||
{Object.entries(shortcuts).map(([key, value]) => (
|
{Object.entries(shortcuts).map(([key, value]) => (
|
||||||
<StyledSection key={key}>
|
<StyledSection key={key}>
|
||||||
<Label>{key}</Label>
|
<Label>
|
||||||
|
<FormattedMessage id={`menu.${key.toLocaleLowerCase()}`} />
|
||||||
|
</Label>
|
||||||
<ContentItem>
|
<ContentItem>
|
||||||
{value.map((shortcut) => (
|
{value.map((shortcut) => (
|
||||||
<StyledItem key={shortcut.label}>
|
<StyledItem key={shortcut.label}>
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
"to": "À",
|
"to": "À",
|
||||||
"to.selection": "Sélection",
|
"to.selection": "Sélection",
|
||||||
"to.fit": "Contenu",
|
"to.fit": "Contenu",
|
||||||
|
"menu.tools": "Outils",
|
||||||
|
"menu.transform": "Transformation",
|
||||||
"menu.file": "Fichier",
|
"menu.file": "Fichier",
|
||||||
"menu.edit": "Édition",
|
"menu.edit": "Édition",
|
||||||
"menu.view": "Afficher",
|
"menu.view": "Afficher",
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
"to": "To",
|
"to": "To",
|
||||||
"to.selection": "To Selection",
|
"to.selection": "To Selection",
|
||||||
"to.fit": "To Fit",
|
"to.fit": "To Fit",
|
||||||
|
"menu.tools": "Tools",
|
||||||
|
"menu.transform": "Transform",
|
||||||
"menu.file": "File",
|
"menu.file": "File",
|
||||||
"menu.edit": "Edit",
|
"menu.edit": "Edit",
|
||||||
"menu.view": "View",
|
"menu.view": "View",
|
||||||
|
|
Loading…
Reference in a new issue