react-editor-js icon indicating copy to clipboard operation
react-editor-js copied to clipboard

React Editor JS in his second version does not render i18n correctly

Open SalahAdDin opened this issue 3 years ago • 1 comments

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: Screen Shot 2022-10-14 at 00 10 27

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.

SalahAdDin avatar Oct 14 '22 09:10 SalahAdDin

@Jungwoo-An any thoughts on this problem?

SalahAdDin avatar Nov 22 '22 13:11 SalahAdDin