Contents

Locale.CurrentLocaleDidChangeMessage

A message the system sends when the current locale changes.

Declaration

struct CurrentLocaleDidChangeMessage

Overview

Register an observer for this message if your app displays content that’s affected by the current locale, such as dates, times, numbers, and so on. Use the message to trigger updates to your app’s interface.

Observe this message with the identifier currentLocaleDidChange, or specify its type directly to the addObserver(of:for:using:) method. The Subject of this message type is Locale.

This message interoperates with the notification currentLocaleDidChangeNotification. The system notifies observers of the message when the NotificationCenter posts the notification. Similarly, the system notifies observers of the notification when it posts the message.

Topics

Creating a message for a change in locale