edtr-io / edtr-io

Edtr.io is an open source WYSIWYG in-line web editor written in React. Its plugin architecture makes Edtr.io lean and extensive at the same time.

Home Page:https://edtr.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing i18n

inyono opened this issue · comments

We missed some places where i18n isn't handled correctly (e.g. plugin toolbar, possibly other places, too)

This project looks amazing. How would you suggest i18n is handled until this is fixed if I want to use this?

Apart from the places mentioned above, i18n has been implemented in all official plugins. To customize i18n, you pass i18n with the labels, see e.g. RowsPluginConfig:

const rowsPlugin = createRowsPlugin({
  i18n: {
    addLabel: 'Add a fancy plugin'
  }
})

Similar to theme, this is merged with the default labels (so if you target English users, you don't have to specify the whole i18n object).

Ok great thanks for the help.

You're welcome. Feel free to get in touch again if you run into problems or something doesn't work as expected :)

Will do. Thank you very much. I'm trying to use this for our site at the moment to manage content and intend to use it for generated pdf files too.