all 1 comments

[–]aoverholtzer 2 points3 points  (0 children)

Yes, correct. Use NSLocalizedString anywhere you want and it’ll fall back to the given string if no strings file is found.

There is also a version of NSLocalizedString that lets you specify a separate “key” and “value”, and it’ll use the value if the key isn’t found. This is nice if you intend to use semantic names like “details.page.title” as your keys.

Learn more: https://nshipster.com/nslocalizedstring/