-
Notifications
You must be signed in to change notification settings - Fork 70
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to switch between translations? #51
Comments
@Yasir5247 hey, could specify what you mean? |
src/services/translate/translations.ts |
@Yasir5247 If you'd like to achieve it now, I can give you some tips:
For the full correct implementation, the current language should be stored in the UI store, which I will do later. |
This is great. This repo saved my life. Good work and appreciate for the effort. |
@Yasir5247 you are welcome! I have added a working (production-ready) example in #52 for language switching. Now you can force to use a specific language as well as make it dependent on the system language. The same logic is applied to Appearance settings (light/dark mode). |
hey @Yasir5247! What I usually do is the following:
And as I see now, It will work only from the app launch, but if you want to toggle in-app language switch, then it's not gonna work, you will need to close the app and then open it again. This might be enough for some cases but I will think about the easiest way to achieve it with in-app switch. |
Hey @Yasir5247! I have added an example of nav&tab bars title translations. Basically, if you change a language in the Settings screen, the app will reload itself and all new translations will be applied. |
No description provided.
The text was updated successfully, but these errors were encountered: