How to localise a string inside the iOS info.plist file?

后端 未结 12 1849
难免孤独
难免孤独 2020-11-22 17:13

As you might know the iOS 8 requires NSLocationWhenInUseUsageDescription key for using user\'s location. I have added this key and some gen

12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 17:44

    Tips

    1. Remember that the iOS Simulator exploits by default your system language. Please change the language (and region) in the iOS Simulator Setting too in order to test your translations.

    2. The localisation string (see Apple docs here) should be

      NSLocationWhenInUseUsageDescription = "Description of this";
      

      and not (with quote "...")

      "NSLocationWhenInUseUsageDescription" = "Description of this";
      

提交回复
热议问题