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

How to update view on language change? #123

Closed
ArchanaSharma95 opened this issue May 24, 2021 · 7 comments
Closed

How to update view on language change? #123

ArchanaSharma95 opened this issue May 24, 2021 · 7 comments

Comments

@ArchanaSharma95
Copy link

I have "setContent" and then "setLanguage" but nothing changed, if I perform routing then it will show the new language changes. Please tell me how can I change the texts on just language change.

I have used a language select list inside header and want to reload the page content by selecting or changing language. How can I achieve this?

@stefalda
Copy link
Owner

Have you tried to set state?

@ArchanaSharma95
Copy link
Author

@stefalda I have used redux state update, and also update state in functional component. But problem is that I have used language select list in header component and want updated view for my page component. It's not working even with the redux state update.

@ronmaple
Copy link

@ArchanaSharma95 Were you able to resolve?

@felix-lambert
Copy link

+1

@Bsignx
Copy link

Bsignx commented Feb 11, 2022

+2

@Nainabbas
Copy link

string.setLanguage is not reactive ,, react hooks are not able to detect language change

@stefalda
Copy link
Owner

You can find a simple example in the example subfolder.

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

6 participants