Skip to content

Commit a04c37b

Browse files
committed
add example of how to use i18n for Convert To buttons
1 parent 9612e0d commit a04c37b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

example/example-i18n.html

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
image: ImageTool,
108108

109109
list: {
110-
class: List,
110+
class: EditorjsList,
111111
inlineToolbar: true,
112112
shortcut: 'CMD+SHIFT+L'
113113
},
@@ -198,7 +198,11 @@
198198
},
199199
"popover": {
200200
"Filter": "Поиск",
201-
"Nothing found": "Ничего не найдено"
201+
"Nothing found": "Ничего не найдено",
202+
/**
203+
* Translation of "Convert To" at the Block Tunes Popover
204+
*/
205+
"Convert to": "Конвертировать в"
202206
}
203207
},
204208

@@ -221,7 +225,7 @@
221225
"Bold": "Полужирный",
222226
"Italic": "Курсив",
223227
"InlineCode": "Моноширинный",
224-
"Image": "Картинка"
228+
"Image": "Картинка",
225229
},
226230

227231
/**
@@ -274,7 +278,13 @@
274278
"list": {
275279
"Ordered": "Нумерованный",
276280
"Unordered": "Маркированный",
277-
}
281+
},
282+
/**
283+
* Translation of "Convert To" at the Inline Toolbar hint
284+
*/
285+
"convertTo": {
286+
"Convert to": "Конвертировать в"
287+
},
278288
},
279289

280290
/**
@@ -295,7 +305,7 @@
295305
},
296306
"moveDown": {
297307
"Move down": "Переместить вниз"
298-
}
308+
},
299309
},
300310
}
301311
},

0 commit comments

Comments
 (0)