editor-js / table

Table constructor for Editor.js
MIT License
124 stars 137 forks source link

i18n Configuration for the tool #127

Open bytefulness opened 1 year ago

bytefulness commented 1 year ago

I can't translate the tool texts inside i18n configuration object with proper way. Could you provide syntax about how can we translate texts.

AryeBorgen commented 1 year ago

You can do it like this:

    "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": "הוספת עמודה מימין"
            }
        }
    }
}