From ce3198a0b5c52d11976125a6b82d65c6abddf37e Mon Sep 17 00:00:00 2001 From: kotte-sanya Date: Fri, 28 Aug 2020 00:17:23 +0900 Subject: [PATCH] #84 fixed editorjs i18n --- spa/src/locales/cs.json | 23 ++++++++++++- spa/src/locales/en.json | 23 ++++++++++++- spa/src/views/item/WriteBlog.vue | 57 ++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+), 2 deletions(-) diff --git a/spa/src/locales/cs.json b/spa/src/locales/cs.json index ba25792a..5e9b7aea 100644 --- a/spa/src/locales/cs.json +++ b/spa/src/locales/cs.json @@ -230,7 +230,28 @@ "p-placeholder": "Napište text nebo stiskněte tlačítko +. Označením textu se objeví další možnosti.", "h-placeholder": "Napište hlavičku", "q-placeholder": "Napište citaci", - "save-button": "Uložit" + "save-button": "Uložit", + "click-to-tune": "Klepnutím nalaďte", + "or-drag-to-move": "nebo tažením pohybujte", + "convert-to": "Převést na", + "add": "Přidat", + "text": "Text", + "heading": "Nadpis", + "list": "Seznam", + "quote": "Citát", + "delimiter": "Oddělovač", + "table": "Stůl", + "image": "obraz", + "bold": "tučně", + "italic": "Kurzíva", + "inlineCode": "Vložený kód", + "title": "Titul", + "message": "Zpráva", + "add-link": "Přidejte odkaz", + "display-incorrect": "Blok nelze zobrazit správně.", + "delete": "Vymazat", + "move-up": "Posuňte se nahoru", + "move-down": "Posunout dolů" } }, "page-title": { diff --git a/spa/src/locales/en.json b/spa/src/locales/en.json index 0d86539b..bd848935 100644 --- a/spa/src/locales/en.json +++ b/spa/src/locales/en.json @@ -230,7 +230,28 @@ "p-placeholder": "Enter your text or press + button", "h-placeholder": "Enter a header", "q-placeholder": "Enter a quote", - "save-button": "Save" + "save-button": "Save", + "click-to-tune": "Click to tune", + "or-drag-to-move": "or drag to move", + "convert-to": "Convert to", + "add": "Add", + "text": "Text", + "heading": "Heading", + "list": "List", + "quote": "Quote", + "delimiter": "Delimiter", + "table": "Table", + "image": "Image", + "bold": "Bold", + "italic": "Italic", + "inlineCode": "InlineCode", + "title": "Title", + "message": "Message", + "add-link": "Add a link", + "display-incorrect": "The block can not be displayed correctly.", + "delete": "Delete", + "move-up": "Move up", + "move-down": "Move down" } }, "page-title":{ diff --git a/spa/src/views/item/WriteBlog.vue b/spa/src/views/item/WriteBlog.vue index 65331f88..c78653e6 100644 --- a/spa/src/views/item/WriteBlog.vue +++ b/spa/src/views/item/WriteBlog.vue @@ -123,6 +123,63 @@ export default { // this.$log.debug(args, 'Now I know that Editor\'s content changed!'); // }, data: {}, + i18n: { + messages: { + ui: { + blockTunes: { + toggler: { + 'Click to tune': this.$t('blog.form.click-to-tune'), + 'or drag to move': this.$t('blog.form.or-drag-to-move'), + }, + }, + inlineToolbar: { + converter: { + 'Convert to': this.$t('blog.form.convert-to'), + }, + }, + toolbar: { + toolbox: { + Add: this.$t('blog.form.add'), + }, + }, + }, + toolNames: { + Text: this.$t('blog.form.text'), + Heading: this.$t('blog.form.heading'), + List: this.$t('blog.form.list'), + Quote: this.$t('blog.form.quote'), + Delimiter: this.$t('blog.form.delimiter'), + Table: this.$t('blog.form.table'), + Image: this.$t('blog.form.table'), + Bold: this.$t('blog.form.bold'), + Italic: this.$t('blog.form.italic'), + InlineCode: this.$t('blog.form.inlineCode'), + }, + tools: { + warning: { + Title: this.$t('blog.form.title'), + Message: this.$t('blog.form.message'), + }, + link: { + 'Add a link': this.$t('blog.form.add-link'), + }, + stub: { + 'The block can not be displayed correctly.': this.$t('blog.form.display-incorrect'), + }, + }, + blockTunes: { + delete: { + Delete: this.$t('blog.form.delete'), + }, + moveUp: { + 'Move up': this.$t('blog.form.move-up'), + }, + moveDown: { + 'Move down': this.$t('blog.form.move-down'), + }, + }, + }, + }, }, }; },