I have a project in Swift and it uses a few languages (3 at the moment). I added them using "Localizations" tab in Project tab. Then I'd use Editor -> Export for Localization.. to generate an Xliff file which would contain all the NSLocalized strings and translated storyboards in my project. After translating, I'd import Xliff back and it's all done. Very convenient.
I'm also using a few Cocoapods which already have NSLocalizedString's inside, just sitting for me to translate them. The problem is, when exporting my Xliff, it wouldn't pick up any other untranslated strings within my workspace, just within the project.
How would I go about translating those strings and also making sure that they stay there when I pod update next time?
How would I go about translating those strings...
see Localization and CocoaPods.
...making sure that they stay there when I pod update next time?
If you are using public CocoaPods (i.e. from GitHub), it is of good etiquette (if not your duty) to collaborate and clone, localize, then git push back to community. This will ensure that you pod install, as well as everyone else's pod install will contain localized data.
It is a bit of a tedious process, but one adopted by countless Pod projects, including, but not limited to Appirater.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With