-
Notifications
You must be signed in to change notification settings - Fork 36
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
Language of UIActivityViewController Does not change when Reset #50
Comments
@mEldewaik did you tried UIAlertController instead, I'm using it and it is fine. |
@abdallahnh i use UIAlertViewController to share text does UIAlertController do the same ? |
@mEldewaik yes sure it does |
@abdallahnh the code please 🙏 |
@mEldewaik can you share a screenshot of what are you trying to localize. I guess you mean UIActivityViewController not UIAlertViewController as there is no such thing AFAIK! |
@MoathOthman yes i mean UIActivityViewController it can not be localized unless i close the app and open it again |
I don\t there is a straight way to achieve it since its part of uikit and , check https://medium.com/@dark_torch/working-with-localization-in-swift-part-2-e7c8a660eb2a on "Other Frameworks and bundles" section , at best you get to change the localization but not the layout. |
@MoathOthman i don't think it is the answer as it is already translated but its is not flipped and translated until i close and open the app again . |
@mEldewaik I don't think it is possible, but I will look into it soon. |
@MoathOthman so can i disable localization for UIActivityViewController and use only english in all cases ? |
no because you don't have access to the layout code and the localization is handled in another bundle. if you can find the localization keys for the strings in the activityview , then there is a way. but i forgot tbh how to do that, if you managed to do that please let me know. |
@MoathOthman i saw before application support english and arabic and the UIActivityViewController only in english |
it would be interesting to be able to force certain language for certain strings, or even certain view controllers. am not aware of any currently, but will look into it. |
@mEldewaik i added some appearance changes please try from master and let me know if this fixed your issue |
@abdallahnh so how can i test it please can you advice ? |
@abdallahnh i download the pod and implement button and make a share but the issue still exist i can not find solution :( |
When Change Language from english to Arabic Or reverse UIAlertViewController does not localized unless i restart the app please i need fix i faced this issue and tried alot but can not find solution.
`let activityViewController = UIActivityViewController(activityItems: sharingItems, applicationActivities: nil)
The text was updated successfully, but these errors were encountered: