[GH-ISSUE #33] Support for i18n #242

Closed
opened 2026-03-15 01:53:57 +03:00 by kerem · 5 comments
Owner

Originally created by @BigDog1400 on GitHub (Jan 12, 2024).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/33

The current version of this library only supports English text. I can think of different application that might need to change the text to different langs (es,en,pt, etc). What do you think about providing the library with translation?
It could be a prop to the editor instance and then internally get the translations from a JSON file. What are your thoughts on this proposed enhancement?

Originally created by @BigDog1400 on GitHub (Jan 12, 2024). Original GitHub issue: https://github.com/arikchakma/maily.to/issues/33 The current version of this library only supports English text. I can think of different application that might need to change the text to different langs (es,en,pt, etc). What do you think about providing the library with translation? It could be a prop to the editor instance and then internally get the translations from a JSON file. What are your thoughts on this proposed enhancement?
kerem closed this issue 2026-03-15 01:54:03 +03:00
Author
Owner

@arikchakma commented on GitHub (Jan 12, 2024):

Like support for different languages? or for slash command text and everything else?

<!-- gh-comment-id:1889031808 --> @arikchakma commented on GitHub (Jan 12, 2024): Like support for different languages? or for slash command text and everything else?
Author
Owner

@arikchakma commented on GitHub (Jan 12, 2024):

I think first we need to add RTL support I think, it's really important. What do you think?

<!-- gh-comment-id:1889033420 --> @arikchakma commented on GitHub (Jan 12, 2024): I think first we need to add `RTL` support I think, it's really important. What do you think?
Author
Owner

@BigDog1400 commented on GitHub (Jan 12, 2024):

I think that those are different things, both valid. My initial issue was raised considering the built-in components of the library (translating elements like slash command options, placeholders, popovers, etc.). Implementing this would mainly involve modifying the existing editor components.

On the other hand, adding RTL support would need updates to both the editor and the render package.

I am more than willing to assist with the first part, which is adding support for translations. Let me know if you want me to make a proposal for this feature

<!-- gh-comment-id:1889538901 --> @BigDog1400 commented on GitHub (Jan 12, 2024): I think that those are different things, both valid. My initial issue was raised considering the built-in components of the library (translating elements like slash command options, placeholders, popovers, etc.). Implementing this would mainly involve modifying the existing editor components. On the other hand, adding `RTL` support would need updates to both the editor and the render package. I am more than willing to assist with the first part, which is adding support for translations. Let me know if you want me to make a proposal for this feature
Author
Owner

@arikchakma commented on GitHub (Jan 12, 2024):

Yeah, we can do that. Let's go for it. I'll think about the RTL whenever I get some time.

<!-- gh-comment-id:1889543049 --> @arikchakma commented on GitHub (Jan 12, 2024): Yeah, we can do that. Let's go for it. I'll think about the `RTL` whenever I get some time.
Author
Owner

@BigDog1400 commented on GitHub (Jan 15, 2024):

Here is my first proposal to handle the i18n in this package https://github.com/arikchakma/maily.to/pull/34 . I usually use react-intl to handle translations in others projects, but that package relies on context and hooks, and we can't use that in a lot of places in this case. so i went with react-intl-universal which is a fork of react-intl mantained by alibaba and has the flexibility of using translations outside of react. Let me know what you think, right now there is only two langs translated, english and spanish. Also we could add a lang selector in the demo app to see how the editor changes the translations.

<!-- gh-comment-id:1891310755 --> @BigDog1400 commented on GitHub (Jan 15, 2024): Here is my first proposal to handle the i18n in this package https://github.com/arikchakma/maily.to/pull/34 . I usually use react-intl to handle translations in others projects, but that package relies on context and hooks, and we can't use that in a lot of places in this case. so i went with react-intl-universal which is a fork of react-intl mantained by alibaba and has the flexibility of using translations outside of react. Let me know what you think, right now there is only two langs translated, english and spanish. Also we could add a lang selector in the demo app to see how the editor changes the translations.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/maily.to#242
No description provided.