How do you localize static UIApplicationShortcutItems? How do you localize static UIApplicationShortcutItems? ios ios

How do you localize static UIApplicationShortcutItems?


Turns out that the app will search the InfoPlist.strings file for a corresponding key matching the value in the Info.plist. That might sound a little confusing, so here's an example:

For the UIApplicationShortcutItemTitle key in the info.plist, add a value of, say, ADD_ITEM_SHORTCUT_TITLE:

<key>UIApplicationShortcutItemTitle</key><string>ADD_ITEM_SHORTCUT_TITLE</string>

This value will then need a corresponding entry in your InfoPlist.strings file:

ADD_ITEM_SHORTCUT_TITLE = "Add Item";


Add one new string file and save it with name "InfoPlist.strings"enter image description here

Enable Localization for this file, and add string with title like below explanation.

enter image description here

Now Open your info.plist file and add title like below.

enter image description here