From a04c37b30b6e2dcdd301752a7236829f53da8620 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Mon, 15 Sep 2025 20:14:25 +0300 Subject: [PATCH] add example of how to use i18n for Convert To buttons --- example/example-i18n.html | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/example/example-i18n.html b/example/example-i18n.html index bc1aaf7a..f765f1e9 100644 --- a/example/example-i18n.html +++ b/example/example-i18n.html @@ -107,7 +107,7 @@ image: ImageTool, list: { - class: List, + class: EditorjsList, inlineToolbar: true, shortcut: 'CMD+SHIFT+L' }, @@ -198,7 +198,11 @@ }, "popover": { "Filter": "Поиск", - "Nothing found": "Ничего не найдено" + "Nothing found": "Ничего не найдено", + /** + * Translation of "Convert To" at the Block Tunes Popover + */ + "Convert to": "Конвертировать в" } }, @@ -221,7 +225,7 @@ "Bold": "Полужирный", "Italic": "Курсив", "InlineCode": "Моноширинный", - "Image": "Картинка" + "Image": "Картинка", }, /** @@ -274,7 +278,13 @@ "list": { "Ordered": "Нумерованный", "Unordered": "Маркированный", - } + }, + /** + * Translation of "Convert To" at the Inline Toolbar hint + */ + "convertTo": { + "Convert to": "Конвертировать в" + }, }, /** @@ -295,7 +305,7 @@ }, "moveDown": { "Move down": "Переместить вниз" - } + }, }, } },