marmelroy / Localize-Swift

Swift friendly localization and i18n with in-app language switching
MIT License
3.08k stars 329 forks source link

Updating Storyboards #110

Open mariovillamizar opened 6 years ago

mariovillamizar commented 6 years ago

Hi guys! Recently I was searching for a solution to update the storyboard without relaunching the app, and I found this language manager https://github.com/maximbilan/ios_language_manager. It works in Objective C and I did work it in Swift. So maybe, could you improve and add their code to this great library? It's open source. Oh, almost forgot it, I have not uploaded a new build of my app so I don't know if Apple rejects it.

mariovillamizar commented 6 years ago

Ok I did a Pull Request here: https://github.com/marmelroy/Localize-Swift/pull/111 How to use:

Option 1: Localize.setCurrentLanguage("en", restartFromRoot: yourRootViewController)

Option 2: Localize.setCurrentLanguage("en") Update your interfaces yourself

Please take a look and let me know if that works.

asn111 commented 6 years ago

Hi, Thank you for your awesome pull request but I want to use this in my project how can I use this now. ? kindly help me out, exhausted trying other solutions.

mariovillamizar commented 6 years ago

Ok I will update the example.

asn111 commented 6 years ago

Thank you so much Please Let me know when you update it.

asn111 commented 6 years ago

Hi, Did you do that ?

alshezawi commented 6 years ago

Please update rep. still we have to re-open the app to apply updating

asn111 commented 6 years ago

Hi mariovillamizar, hope you are fine, we are still waiting for your update.

mariovillamizar commented 6 years ago

Hey guys sorry. I will update the example right now. I'm a little busy, but I will.

mariovillamizar commented 6 years ago

Hi @asn111. The example is updated. Please take a look. The pull request is here https://github.com/marmelroy/Localize-Swift/pull/111. To take in mind I use this: https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPInternational/LocalizingYourApp/LocalizingYourApp.html Let me know if that works.

sudipta17 commented 4 years ago

I am using this pod for localization. But it does not work for storyboard. In order to make it work for storyboard what I need to do?