From ae536d0be67caaca24f17867b5f3b7d93086fd09 Mon Sep 17 00:00:00 2001 From: Judicael <46365844+judicaelandria@users.noreply.github.com> Date: Fri, 22 Jul 2022 20:29:37 +0300 Subject: [PATCH] Add translation in keyboard shortcut (#838) --- .../src/components/ToolsPanel/keyboardShortcutDialog.tsx | 4 +++- packages/tldraw/src/translations/fr.json | 4 +++- packages/tldraw/src/translations/main.json | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/tldraw/src/components/ToolsPanel/keyboardShortcutDialog.tsx b/packages/tldraw/src/components/ToolsPanel/keyboardShortcutDialog.tsx index 1be7b4b41..1b77f70dc 100644 --- a/packages/tldraw/src/components/ToolsPanel/keyboardShortcutDialog.tsx +++ b/packages/tldraw/src/components/ToolsPanel/keyboardShortcutDialog.tsx @@ -102,7 +102,9 @@ export function KeyboardShortcutDialog({ {Object.entries(shortcuts).map(([key, value]) => ( - + {value.map((shortcut) => ( diff --git a/packages/tldraw/src/translations/fr.json b/packages/tldraw/src/translations/fr.json index 735123565..6bc449764 100644 --- a/packages/tldraw/src/translations/fr.json +++ b/packages/tldraw/src/translations/fr.json @@ -12,6 +12,8 @@ "to": "À", "to.selection": "Sélection", "to.fit": "Contenu", + "menu.tools": "Outils", + "menu.transform": "Transformation", "menu.file": "Fichier", "menu.edit": "Édition", "menu.view": "Afficher", @@ -97,4 +99,4 @@ "right": "À droite", "top": "En haut", "page": "Page" -} \ No newline at end of file +} diff --git a/packages/tldraw/src/translations/main.json b/packages/tldraw/src/translations/main.json index 57ea09390..57ec2cdad 100644 --- a/packages/tldraw/src/translations/main.json +++ b/packages/tldraw/src/translations/main.json @@ -12,6 +12,8 @@ "to": "To", "to.selection": "To Selection", "to.fit": "To Fit", + "menu.tools": "Tools", + "menu.transform": "Transform", "menu.file": "File", "menu.edit": "Edit", "menu.view": "View", @@ -99,4 +101,4 @@ "keyboard.shortcuts": "Keyboard shortcuts", "search": "Search", "loading": "Loading{dots}" -} \ No newline at end of file +}