bl00mber / react-phone-input-2

:telephone_receiver: Highly customizable phone input component with auto formatting
https://bl00mber.github.io/react-phone-input-2.html
MIT License
953 stars 541 forks source link

[Localization] Country names list does not refresh without reloading the page. #631

Open singhjaskaran2002 opened 1 year ago

singhjaskaran2002 commented 1 year ago

I am working on a panel where internationalization has been implemented. There is a navbar from where I can switch between the languages.

Now, the case is I am rendering the contact number using this plugin. When i change the language from navbar the country list does not getting updated accordingly. Assume it's showing country names in de. Now, When I change language to ar then still it's showing in de language. I debugged it properly, Country names in Arabic fetched from the plugin module as well, but rendered still in de.

Does anyone have solution for this.? Thanks in advance.

seitbekir commented 1 year ago

I have the same issue, but for all the params. I guess, I did something wrong, or, this reactive component is not reactive.