I have a problem with the localization of my app. I want to have french and english (default).
The localization seems to work with the Storyboard as text from there is translated to french (on simulator & iPhone in french). But the strings from Localizable.strings are not translated.
I checked the name of the file and it is correct "Localizable.strings". I validated the content of the files with "plutil -lint " and it was OK. Checking the target->build phases->copy bundle resources: the Localizable.strings is there.
In the code I am using:
NSLocalizedString("KEY", comment: "")
Checking the NSLocale of the simulator, it seems as the preferred language is french, so I do not understand why it is not working.
Any idea?
Thanks,
Henry
Localizable.strings
. Now it is working fine.In my project so many pods with language changes, so it is not reloading immediately, after second time reopening the app then it's working. So I have replaced with default file nameLocalizable.strings
. – Flinn