Nslocalizedstring does not recognize Localizable strings.strings

Asked

Viewed 40 times

0

Next I’m trying to use Swift’s string localization system, but apparently it doesn’t recognize the strings, for example instead of appearing the string Start appears txtinicio, I’m trying to access the strings like this :

NSLocalizedString("txtinicio", comment: "")

My settings are like this :

inserir a descrição da imagem aqui

My string file has strings like this :

"txtinicio" = "Início";

String file configuration is like this :

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

1 answer

0

I was able to solve the problem definitively, what was happening and that in the framework I was using it used localizable, and used the default file Localizable.strings, in my project the string file also had this name, the solution was to rename the string file in my project, it worked

Browser other questions tagged

You are not signed in. Login or sign up in order to post.