Skip to content
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

i18n data can't be changed after initial set #674

Closed
Ethorsen opened this issue Aug 13, 2022 · 0 comments
Closed

i18n data can't be changed after initial set #674

Ethorsen opened this issue Aug 13, 2022 · 0 comments

Comments

@Ethorsen
Copy link

Hello,

No matter if you set i18n data in init function or on first mount of a Picker, we can't change it afterward. Un-mounting/re-mounting the Picker does not work. It needs a full page reload in order to re-init with the other language data.

Meaning language of the picker is not following my user preferences if they change the language in their profile.

Small repro where we can switch from fr/en
https://codesandbox.io/s/react-emoji-mart-5-2-1-3it6oi?file=/src/App.js

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant