I have created the strings files for a few languages and added texts to them. The spanish file, for example, is called Main.strings (Spanish) and I have added two texts to it. The first one to apply the translation to a label in the interface builder (it works) and the other one to print in the viewdidload method (it doesn't work).
"yFi-2X-1s7.text" = "hola";
"lb-hello" = "hola";
What I mean with "it doesn't work" is that the text that is being printed is lb-hello instead of hola
This is the code I'm using to print the text:
NSLog(NSLocalizedString("lb-hello", comment: "Hello translated"));
Any idea about why the translation only works through the Interface Builder? Am I missing something?