-
Notifications
You must be signed in to change notification settings - Fork 44
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
Is this required reload page to load new language state? #245
Comments
There is no need in reloading page. Make sure you used |
@e-tsakhlo I think you haven't check code yet. https://github.com/ttag-org/CRA-runtime-example/blob/master/app/src/App.js#L11 |
This example truly uses page reload, but overoll there is no need in it. You can import all translations (use async import if you wish performance boost), add all locales ( Here is an example from my project using contexts:
|
Hey @e-tsakhlo, thanks for a good example! We are using page reload for our projects and it works ok for us. Looks like we should add some documentation about how it should work without page reload. |
I just think the https://ttag.js.org/docs/library-api.html#uselocale section can be better explained, but it's all there. |
Same the title, Is it required reload page to load new language? I tried don't reload but the language will not show new. Please check
The text was updated successfully, but these errors were encountered: