Nslocalizedstring Only Retrieves the Key, Not the Value in Localizable.Strings (Ios)

NSLocalizedString only retrieves the key, not the value in Localizable.strings (IOS)

Tested the app on an actual device and it worked

App localization showing the key instead of the value in iOS

So I found the problem, I guess who translated the Localizable.strings files for me is an asshole. In 4 places in my strings file there was a row as followed:

"KEY" ;= "Value"

This line cause some kind of a crash, but let the compiler to build successfully for some reason. That's why I couldn't find the bug, only when I decided to take the last Key and Value which are not translate and move them to the top of the Localizable.strings file. Then I was able to understand and see that the problem is somewhere in the middle of the file and the top Keys and Values are translated fine.



Related Topics



Leave a reply



Submit