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?