0

How can I add Localizable.strings file? I will try but could not view the string but show only key.

Ex: GOOD_MORNING="Good Morning ";

Result : GOOD_MORNING

1
  • 1
    The best way to start localization is to follow the apple doc. Localizing Your App Commented Aug 25, 2016 at 17:21

1 Answer 1

6

First go to project info : enter image description here

after pressing the + button choose the other languages you want to add then choose the files you want to localize like the storyboard and .Xib files in your project and before doning so change all the hard coded strings in your project to NSLocalizedString(@"Good Morning", @"");

and it will create the strings file for you if not just on the project add new file and choose a .strings file after it's created select the file in the project and in the localization pane you will find a localize button press it then select base after this the localization pane for this fill will be like this but with your selected languages

enter image description here

click on your secondary language and it will create for you another strings file inside the first on that will hold the translated text and fill this file text with this format :

in the english base file : "Good Morning" = "Good Morning";

in the other language file ex(arabic) : "Good Morning"= "صباح الخير";

Hope my answer benefits you

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.