Skip to content

Android orientation landscape language issue on Modal #106

@faisalansari20

Description

@faisalansari20

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions