Localizing the widget's display name

Widget’s display name is a text string defined in the widget’s info.plist file and specified by the <DisplayName> key.

To localize the display name of your widget:

  1. Define a localized display name in a file named infoplist.strings.

  2. Store the file under the appropriate language project directory.

The following is an example display name definition in an infoplist.strings file:

DisplayName = “Localized name”

When a widget is being installed, the widget installer searches for the infoplist.strings file under a language project directory that matches with the current device system language. If the installer finds the infoplist.strings file and a localized name is provided, the localized name overrides the display name defined in the widget's info.plist file.

Note: The display name is loaded only once, when a widget is being installed. If the system language is later changed to another language, the display name will not be changed according to the new system language; in this case, localization would require reinstallation of the widget.