Chanuka
Chanuka

Reputation: 199

IOS: Add languages as Localizable.strings

I want to localize my app, and I add French and Spanish to the target properties other than English

enter image description here

But, those languages are not showing inside the file inspector to select. Only 'English' and Something called 'Base'.

enter image description here

Any Help?

Upvotes: 12

Views: 21309

Answers (3)

Manthan
Manthan

Reputation: 3914

Just click on your project in "Info" panel , where you can see "Localizations" and add the languages you want.

Upvotes: 0

Michael Dautermann
Michael Dautermann

Reputation: 89509

If you go to the "Info" pane of your project, you'll see a panel that shows your Deployment Target, Configurations and also the current localizations that you support (including a checkmark for "Use Base Internationalization"). Base Internationalization, b.t.w., allows you to have a single storyboard file that has different string files populating the string fields in the storyboard. It works for iOS 6 and newer.

When you start, it might look like this:

The Info Pane before adding any localizations

Here I've added Hindi as a language possibility:

The Info Pane after adding Hindi

And when you're done, you have the checkbox to choose from:

And here's our new option

Upvotes: 27

Jordan Montel
Jordan Montel

Reputation: 8247

You need to add in your Info Project the localizations (I can't add image sorry).

And next you need to create a new file in your project named "Localizable.strings" and Localize this file in your identity menu.

++

Upvotes: 4

Related Questions