-
Notifications
You must be signed in to change notification settings - Fork 61
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
inconsistent language between ui components #31
Comments
Hi @napsterphantom , Do you use Could you please provide a sample project reproducing the issue since there are a couple of similar issues reported already, but I still can't identify the problem without seeing the code. Thanks in advance! |
@napsterphantom , I also have the same problem in my app while using this library. Language inconsistency. but it does not always happen. This is from my Application onCreate() method. Setting.. when user changes the langauge.
|
I can consistently reproduce this issue if device language is different than the one chosen in the app and then I open any browser intent and come back to the app. Any possible workaround? |
@aconsuegra could you clarify what is your browser intent? there is a caveat while using web view, you can read more on that in the README. |
@mirrorlarry I see an issue in your sample code. After setting a locale you immediately kill the app process by For most of the cases, just restarting the activity back stack ( If you indeed need to restart a whole process, you can provide a custom implementation for |
@YarikSOffice You are right, my issue is solved after applying the suggested fix |
Thank you |
In my case it was initialize Admob lately, instead of inside App#onCreate. |
Had similar problems after Webwiew was opened inside app. Some ui elements like button texts were not translated. Calling Lingver.getInstance().setLocale(...) in onCreateView of Fragment with Webwiew solved the problem |
I also faced this issue. For my use case, I used Custom Tab Intent by androidx browser library to launch the URL. |
components of the app that use strings directly in xml eg the layouts correctly respond to language changes, however, Strings pulled by getString(R.string.xxx) remain to the system locale language
The text was updated successfully, but these errors were encountered: