Localizing widget display name

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

To localize the display name of a widget:

  1. Define a localized display name in a file called 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 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 info.plist file.

Note: The display name is loaded only once, when a widget is being installed. If users change the system language later, the display name is not changed.