react-editor-js
react-editor-js copied to clipboard
React Editor JS in his second version does not render i18n correctly
Environment
- @editorjs/editorjs version: 2.25.0
- react-editor-js version: 2.1.0
Describe
Passing i18n object for internationalization through the react-editor-js latest version:
Following the documentation, we pass both the direction and messages properties to i18n:
<EditorJS
// data={JSON.parse(value)}
// enableReInitialize={true}
onReady={handleReady}
onChange={handleChange}
tools={{ ...requiredTools, ...customTools, ...customImageTool }}
instanceRef={(instance) => setEditorInstance(instance)}
i18n={getI18N(currentLanguage)}
/>
As you can see in the picture, the property is coming to the editor component, but it is rendering all messages in English yet.
Additionally, we have another bug:

We tested the same setup with react-editor-js version: 1.10.0 and it works fine.
Could it be possible the package is omitting this API too?
Thank you.
@Jungwoo-An any thoughts on this problem?