IOS Localizable doest't work on xamarin.forms project

I need to use the Localizable.strings on xamaran.project (only native project) files but they are not working .

when I use
NSBundle.MainBundle.GetLocalizedString("new_chat");
always returns the key instead of the value.

Project structure

And this is my Localizable.strings

"NOTIFICATION_TITLE" = "Hello World";
"new_chat" = "Hi,this is the value";

BuildAction of Localizable files is BundleResource.

Tagged:

Best Answer

  • miguelitoBarreramiguelitoBarrera ES ✭✭
    Accepted Answer

    I've fixed it. The problem was in the location file name. Must be ".strings" and not ".Strings".

Answers

Sign In or Register to comment.