Localization


Specifies the time zone and calendar format for a parent element whose value depends on the current date and time.

Introduced in Wear OS 4.

Syntax

<Localization timeZone="iana-tz-string" calendar="BUDDHIST | CHINESE |
              COPTIC | DANGI | ETHIOPIC | ETHIOPIC_AMETE_ALEM | GREGORIAN |
              HEBREW | INDIAN | ISLAMIC | ISLAMIC_CIVIL | ISLAMIC_UMALQURA |
              JAPANESE | PERSIAN | ROC" locales="locales-list">
</Localization>

Attributes

The Localization element has the following optional attributes:

timeZone

An IANA time zone identifier, such as Asia/Seoul, Europe/London, or America/Los_Angeles.

A value of SYNC_TO_DEVICE indicates that the expression should use the Wear OS device's current time zone.

calendar

An ICU-supported world calendar format. The default is GREGORIAN, which represents the Gregorian calendar.

locales

A space-separated list of locale strings. If one of the listed locales matches the system locale, this is used; otherwise, the first available locale from the list is used. Defaults to the system locale.