Skip to content

Commit

Permalink
#84 fixed editorjs i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
kotte-sanya committed Aug 27, 2020
1 parent c19689b commit ce3198a
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 2 deletions.
23 changes: 22 additions & 1 deletion spa/src/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
23 changes: 22 additions & 1 deletion spa/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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":{
Expand Down
57 changes: 57 additions & 0 deletions spa/src/views/item/WriteBlog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
},
},
},
},
};
},
Expand Down

0 comments on commit ce3198a

Please sign in to comment.