Add translation in keyboard shortcut (#838)

This commit is contained in:
Judicael 2022-07-22 20:29:37 +03:00 committed by GitHub
parent 18da1578cf
commit ae536d0be6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View file

@ -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}>

View file

@ -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",
@ -97,4 +99,4 @@
"right": "À droite", "right": "À droite",
"top": "En haut", "top": "En haut",
"page": "Page" "page": "Page"
} }

View file

@ -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",
@ -99,4 +101,4 @@
"keyboard.shortcuts": "Keyboard shortcuts", "keyboard.shortcuts": "Keyboard shortcuts",
"search": "Search", "search": "Search",
"loading": "Loading{dots}" "loading": "Loading{dots}"
} }