0

In my app, I want to support localization. I able to localise app using Localizable.strings except for Info.plist file. I want to localise app's privacy alert messages. I found below helpful links but it is not working with Xcode 9.4.1 and iOS 11+.

I followed the same steps:

  1. Created InfoPlist.strings

  2. Localised this file for selected languages

  3. And added keys and values as : Key = "value"; in this InfoPlist.strings file

    eg. NSContactsUsageDescription = "App use Contacts to select contacts";

  4. Also found this file in "Project settings" -> "Build Phases" -> "Copy Bundle Resources"

Found some blogs/information as:

Any idea how to do with Xcode 9.4.1 and iOS 11+?

Community
  • 1
  • 1
Kirti Nikam
  • 2,166
  • 2
  • 22
  • 43
  • 1
    Do you have quotes around your keys? The example above shows `NSContactsUsageDescription = "App...` but you really want it to be `"NSContactsUsageDescription" = "App...` – Stonz2 Jul 16 '18 at 13:58
  • I tried with double quotes but not worked – Kirti Nikam Jul 16 '18 at 14:00
  • Do you have the keys in your `Info.plist` file as well? I think you have to have the key in there with just the default translation as the value in order for it to pick up the translated values in the `InfoPlist.strings` file. – Stonz2 Jul 16 '18 at 16:04
  • @Stonz2, Yes I have `Info.plist` file with these keys and its values in the English language. – Kirti Nikam Jul 17 '18 at 05:46

1 Answers1

1

Hai please refer the image shown below

The info.plist

check with the localization which you provided

CELIA JOSE
  • 146
  • 4
  • Are you localising Info.plist file? I did that before it is creating `Info.plist (English)` and `Info.plist (Japanese)` instead `InfoPlist.strings` file. – Kirti Nikam Jul 19 '18 at 11:59