From 8ae9fdf7def38daf6494207e66bc7026e833bdc1 Mon Sep 17 00:00:00 2001 From: Arye Borgan <72888630+Ary428@users.noreply.github.com> Date: Wed, 31 May 2023 16:45:21 +0300 Subject: [PATCH] Added I18n support to README This commit includes details about the tool's support for the i18n API, including how to localize UI labels using the i18n dictionary in the `tools` section. A link to more instructions on Editor.js internationalization was also added. --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index 49984ab..c9d20bf 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,41 @@ var editor = EditorJS({ | `cols` | `number` | initial number of columns. `2` by default | | `withHeadings` | `boolean` | toggle table headings. `false` by default | +## I18n support + +This tool supports the [i18n api](https://editorjs.io/i18n-api). +To localize UI labels, put this object to your i18n dictionary under the `tools` section: + +```json +{ + "messages": { + "blockTunes": { + + }, + "ui": { + + }, + "toolNames": { + + }, + "tools": { + "table": { + "With headings": "עם כותרת", + "Without headings": "ללא כותרת", + "Add row above": "הוספת שורה למעלה", + "Add row below": "הוספת שורה למטה", + "Delete row": "מחיקת שורה", + "Delete column": "מחיקת עמודה", + "Add column to left": "הוספת עמודה משמאל", + "Add column to right": "הוספת עמודה מימין" + } + } + } +} +``` + +See more instructions about Editor.js internationalization here: [https://editorjs.io/internationalization](https://editorjs.io/internationalization) + ## Output data This Tool returns `data` in the following format