Closed Ambrosiani closed 5 years ago
I think that the language setting is (sometimes) not stored correctly when the app is restarted. In the attached example, it reverts to the default phone language about 50 % of the time.
Thanks for the video @Ambrosiani, did you find any steps that can reproduce it 100% of the time?
not yet, but will do some more serious testing on the ipods :)
Thanks so much Aron!
(Also not that you're asking but if you're looking for an easy way to make GIFs so you can just upload it to Github I suggest: https://www.cockos.com/licecap/.)
on an iphone with Swedish as default locale:
result: Arabic, LTR: 1 Arabic, RTL: 5 Swedish, RTL: 3 Swedish, LTR: 5
on an iphone with Swedish as default locale & "museum mode"
result: Arabic, LTR: 0 Arabic, RTL: 6 Arabic, some RTL & some LTR: 1 Swedish, RTL: 0 Swedish, LTR: 4 Swedish, some RTL & some LTR: 1 crashed app: 3
@Ambrosiani Awesome thanks for the detailed write-up. It's a bit crazy how all over the place this bug is... 😖 I'll look into it a bit next week.
seems like I18nManager.forceRTL & react-native-restart could be enough. That's how our KTH students implemented it in their android version at least.
some ideas here: https://github.com/facebook/react-native/issues/17867
student code here: https://github.com/NordicMuseum/Nordic-Museum-Audio-Guide-Android/blob/master/app/screens/language.js
no issues so far in v2 – closing!
Users report problems when switching btwn left-to-right and right-to-left languages. Todo: add screenshots here…