-
Notifications
You must be signed in to change notification settings - Fork 88
Add i18n to emoji picker #296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
size-limit report 📦
|
mahboubii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Could you also add some tests for this?
@mahboubii will do :) |
|
@arnautov-anton @mahboubii Finally added those tests to EmojiPicker + StatusUpdateForm. I have only tested that the props are correctly passed down. Could you please review these changes? Thank you |
Use PropsWithChildren Co-authored-by: Anton Arnautov <43254280+arnautov-anton@users.noreply.github.com>
Use PropsWithChildren Co-authored-by: Anton Arnautov <43254280+arnautov-anton@users.noreply.github.com>
Use default props Co-authored-by: Anton Arnautov <43254280+arnautov-anton@users.noreply.github.com>
|
LGTM. 👍 |
src/i18n/en.json
Outdated
| "Smileys & Emotion": "Smileys & Emotion", | ||
| "Smileys & People": "Smileys & People", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this change necessary to adapt to emoji-mart default set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mahboubii the intention was not only to align it with the npm package, but also with the key under which it is stored in the I18n object (categories.people). Do you prefer me to revert this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverting back to Smileys & Emotion
Co-authored-by: Amin Mahboubi <amin@getstream.io>
Co-authored-by: Amin Mahboubi <amin@getstream.io>
…d-i18n-to-EmojiPicker
Adding optional
emojiI18nprop toStatusUpdateFormPropsin order the user can pass custom strings / translations to EmojiPicker.