Skip to content
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

Android orientation landscape language issue on Modal #106

Open
faisalansari20 opened this issue Jun 10, 2021 · 0 comments
Open

Android orientation landscape language issue on Modal #106

faisalansari20 opened this issue Jun 10, 2021 · 0 comments

Comments

@faisalansari20
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant