Open SalahAdDin opened 1 year ago
Passing i18n object for internationalization through the react-editor-js latest version:
i18n
react-editor-js
Following the documentation, we pass both the direction and messages properties to i18n:
direction
messages
<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.
react-editor-js version: 1.10.0
Could it be possible the package is omitting this API too?
Thank you.
@Jungwoo-An any thoughts on this problem?
Environment
Describe
Passing
i18n
object for internationalization through thereact-editor-js
latest version:Following the documentation, we pass both the
direction
andmessages
properties toi18n
: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](https://user-images.githubusercontent.com/5034215/195711348-8995fc1d-df51-46f6-972c-4a1483d4d224.png)
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.