diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-07-17 17:40:03 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-07-17 17:40:03 +0300 |
commit | e71f69671591fa16926b0d2306b978c3fe19421f (patch) | |
tree | d300f698a244115c113564442624099db74b5877 /src | |
parent | f965f9a18c76414282ed7abd1b371cf27b078303 (diff) |
Add translations for menu bar and ignore js folder
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/MenuBar.vue | 2 | ||||
-rw-r--r-- | src/mixins/menubar.js | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/src/components/MenuBar.vue b/src/components/MenuBar.vue index 06d162ccf..bacbe04ed 100644 --- a/src/components/MenuBar.vue +++ b/src/components/MenuBar.vue @@ -132,7 +132,7 @@ export default { return this.icons } return [...this.icons, { - label: 'Insert image', + label: t('text', 'Insert image'), class: 'icon-image', isActive: () => { }, diff --git a/src/mixins/menubar.js b/src/mixins/menubar.js index 855e61de7..f0705bf79 100644 --- a/src/mixins/menubar.js +++ b/src/mixins/menubar.js @@ -28,13 +28,13 @@ export default [ action: (command) => command.undo() }, { - label: 'Redo', + label: t('text', 'Redo'), class: 'icon-redo', isActive: (isActive) => {}, action: (command) => command.redo() }, { - label: 'Bold', + label: t('text', 'Bold'), class: 'icon-bold', isActive: (isActive) => isActive.strong(), action: (command) => { @@ -42,7 +42,7 @@ export default [ } }, { - label: 'Italic', + label: t('text', 'Italic'), class: 'icon-italic', isActive: (isActive) => isActive.em(), action: (command) => { @@ -50,7 +50,7 @@ export default [ } }, { - label: 'Strikethough', + label: t('text', 'Strikethough'), class: 'icon-strike', isActive: (isActive) => isActive.strike(), action: (command) => { @@ -58,7 +58,7 @@ export default [ } }, { - label: 'Paragraph', + label: t('text', 'Paragraph'), class: 'icon-paragraph', isActive: (isActive) => {}, action: (command) => { @@ -66,11 +66,11 @@ export default [ } }, { - label: 'Headings', + label: t('text', 'Headings'), visible: false, children: [ { - label: 'Heading 1', + label: t('text', 'Heading 1'), class: 'icon-h1', isActive: (isActive) => isActive.heading({ level: 1 }), action: (command) => { @@ -78,7 +78,7 @@ export default [ } }, { - label: 'Heading 2', + label: t('text', 'Heading 2'), class: 'icon-h2', isActive: (isActive) => isActive.heading({ level: 2 }), action: (command) => { @@ -86,7 +86,7 @@ export default [ } }, { - label: 'Heading 3', + label: t('text', 'Heading 3'), class: 'icon-h3', isActive: (isActive) => isActive.heading({ level: 3 }), action: (command) => { @@ -94,7 +94,7 @@ export default [ } }, { - label: 'Heading 4', + label: t('text', 'Heading 4'), class: 'icon-h4', isActive: (isActive) => isActive.heading({ level: 4 }), action: (command) => { @@ -102,7 +102,7 @@ export default [ } }, { - label: 'Heading 5', + label: t('text', 'Heading 5'), class: 'icon-h5', isActive: (isActive) => isActive.heading({ level: 5 }), action: (command) => { @@ -110,7 +110,7 @@ export default [ } }, { - label: 'Heading 6', + label: t('text', 'Heading 6'), class: 'icon-h6', isActive: (isActive) => isActive.heading({ level: 6 }), action: (command) => { @@ -120,7 +120,7 @@ export default [ ] }, { - label: 'Unordered list', + label: t('text', 'Unordered list'), class: 'icon-ul', isActive: (isActive) => isActive.bullet_list(), action: (command) => { @@ -128,7 +128,7 @@ export default [ } }, { - label: 'Ordered list', + label: t('text', 'Ordered list'), class: 'icon-ol', isActive: (isActive) => isActive.ordered_list(), action: (command) => { @@ -136,7 +136,7 @@ export default [ } }, { - label: 'Blockquote', + label: t('text', 'Blockquote'), class: 'icon-quote', isActive: (isActive) => isActive.blockquote(), action: (command) => { @@ -144,7 +144,7 @@ export default [ } }, { - label: 'Code block', + label: t('text', 'Code block'), class: 'icon-code', isActive: (isActive) => isActive.code_block(), action: (command) => { |