nativescript-localize
nativescript-localize copied to clipboard
Android orientation landscape language issue on Modal
Hi,
I am working on application where we have 2 languages English(default) and French. I came into a situation where i wanted to open modal in landscape mode on Android and language was set to French. But as soon as modal opens language was set to default(English) instead of french and when i close the modal and refresh that screen all text where in english instead of french.
So, I was looking into that issue and I thought that it could be because of plugin loosing it current language context while changing orientation on Android. So, I set orientation change event and called androidLaunchEventLocalizationHandler and it worked.
below code i placed inside my main.ts file.
Application.on(Application.orientationChangedEvent, (args) => { if (args.android) { androidLaunchEventLocalizationHandler(); } });
Please let me know if this is an issue or if it is caused due to something else. Please Note: This is only happens Android and on IOS everything works perfectly fine.