diff options
author | Felix Nüsse <felix.nuesse@t-online.de> | 2022-05-27 15:54:46 +0300 |
---|---|---|
committer | Felix Nüsse <felix.nuesse@t-online.de> | 2022-05-27 15:54:46 +0300 |
commit | eaf79a865df9fbe9234b13da8f93d89816286ad2 (patch) | |
tree | 51b0710e83cfa927a9c794fbe5c466bfdbdd98de | |
parent | 4a5152ae5563e99101d97d220cbacfe111712b91 (diff) |
add more translations
Signed-off-by: Felix Nüsse <felix.nuesse@t-online.de>
-rw-r--r-- | src/components/AppHelp.vue | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/components/AppHelp.vue b/src/components/AppHelp.vue index 865e7201..2865e1db 100644 --- a/src/components/AppHelp.vue +++ b/src/components/AppHelp.vue @@ -116,37 +116,37 @@ export default { computed: { getShortcuts() { return [ - { shortcut: 'CTRL+', action: 'toggleBlockquote' }, - { shortcut: 'CTRL+B', action: 'toggleBold' }, - { shortcut: 'CTRL+E', action: 'cleanBlock' }, - { shortcut: 'CTRL+H', action: 'toggleHeadingSmaller' }, - { shortcut: 'CTRL+I', action: 'toggleItalic' }, - { shortcut: 'CTRL+K', action: 'drawLink' }, - { shortcut: 'CTRL+L', action: 'toggleUnorderedList' }, - { shortcut: 'CTRL+P', action: 'togglePreview' }, - { shortcut: 'CTRL+Alt+C', action: 'toggleCodeBlock' }, - { shortcut: 'CTRL+Alt+I', action: 'drawImage' }, - { shortcut: 'CTRL+Alt+L', action: 'toggleOrderedList' }, - { shortcut: 'Shift+Cmd+H', action: 'toggleHeadingBigger' }, - { shortcut: 'F9', action: 'toggleSideBySide' }, - { shortcut: 'F11', action: 'toggleFullScreen' }, - { shortcut: 'CTRL+/', action: 'Switch between Editor and Viewer' }, + { shortcut: t('notes', 'CTRL+\''), action: t('notes', 'Make the selection a quote') }, + { shortcut: t('notes', 'CTRL+B'), action: t('notes', 'Make the selection bold') }, + { shortcut: t('notes', 'CTRL+E'), action: t('notes', 'cleanBlock') }, + { shortcut: t('notes', 'CTRL+H'), action: t('notes', 'toggleHeadingSmaller') }, + { shortcut: t('notes', 'CTRL+I'), action: t('notes', 'Make the selection italic') }, + { shortcut: t('notes', 'CTRL+K'), action: t('notes', 'Insert link at cursor') }, + { shortcut: t('notes', 'CTRL+L'), action: t('notes', 'Makes the current line a list element') }, + { shortcut: t('notes', 'CTRL+P'), action: t('notes', 'Toggle between preview') }, + { shortcut: t('notes', 'CTRL+Alt+C'), action: t('notes', 'The selection will be turned into monospace') }, + { shortcut: t('notes', 'CTRL+Alt+I'), action: t('notes', 'Insert image at the cursor') }, + { shortcut: t('notes', 'CTRL+Alt+L'), action: t('notes', 'kes the current line a list element with a number') }, + { shortcut: t('notes', 'SHIFT+CTRL+H'), action: t('notes', 'toggleHeadingBigger') }, + { shortcut: t('notes', 'F9'), action: t('notes', 'toggleSideBySide') }, + { shortcut: t('notes', 'F11'), action: t('notes', 'Make the note fullscreen') }, + { shortcut: t('notes', 'CTRL+/'), action: t('notes', 'Switch between Editor and Viewer') }, ] }, getMarkdown() { return [ - { sequence: '**test**', result: 'make bold', visualized: '<b>test</b>' }, - { sequence: '*italics*', result: 'make italic', visualized: '<em>test</em>' }, - { sequence: '~~strikethrough~~', result: 'strikethrough', visualized: '<s>test</s>' }, - - { sequence: '# Big header', result: 'Big header', visualized: '<h2>test</h2>' }, - { sequence: '## Medium header', result: 'Medium header', visualized: '<b><h3>test</h3></b>' }, - { sequence: '### Small header', result: 'Small header', visualized: '<h3>test</h3>' }, - { sequence: '#### Tiny header', result: 'Tiny header', visualized: '<h4>test</h4>' }, - - { sequence: '* Generic list item', result: 'Generic list item', visualized: '<li>test</li>' }, - { sequence: '1. Numbered list item<br>2. Numbered list item<br>4. Numbered list item<br>', - result: 'Generic list item', visualized: '<li>1. test</li><li>2. test</li><li>3. test</li>' }, + { sequence: '**' + t('notes', 'bolding') + '**', result: 'Bolding', visualized: '<b>' + t('notes', 'bolding') + '</b>' }, + { sequence: '*' + t('notes', 'italic') + '*', result: 'Italicising', visualized: '<em>' + t('notes', 'italic') + '</em>' }, + { sequence: '~~' + t('notes', 'strikethrough') + '~~', result: 'strikethrough', visualized: '<s>' + t('notes', 'strikethrough') + '</s>' }, + + { sequence: '# ' + t('notes', 'Big header'), result: t('notes', 'Big header'), visualized: '<h2>' + t('notes', 'Big header') + '</h2>' }, + { sequence: '## ' + t('notes', 'Medium header'), result: t('notes', 'Medium header'), visualized: '<b><h3>' + t('notes', 'Medium header') + '</h3></b>' }, + { sequence: '### ' + t('notes', 'Small header'), result: t('notes', 'Small header'), visualized: '<h3>' + t('notes', 'Small header') + '</h3>' }, + { sequence: '#### ' + t('notes', 'Tiny header'), result: t('notes', 'Tiny header'), visualized: '<h4>' + t('notes', 'Tiny header') + '</h4>' }, + + { sequence: '* ' + t('notes', 'Generic list item'), result: t('notes', 'Generic list'), visualized: '<li>' + t('notes', 'Generic list item') + '</li>' }, + { sequence: '1. William Riker<br>2. Deanna Troi<br>3. Beverly Crusher<br>', + result: t('notes', 'Numbered list'), visualized: '<ol><li>William Riker</li><li>Deanna Troi</li><li>Beverly Crusher</li></ol>' }, { sequence: '[Text to display](http://www.example.com)', result: "'link'", visualized: "<a href='http://www.example.com'>Text to display</a>" }, { sequence: '![Alt Title](http://www.example.com/image.jpg)', result: 'link', visualized: "<img src='http://www.example.com' alt='Alt Title'></img>" }, |