A locale
represents a language and region code that defines how a site's content should be displayed for a specific audience.
Locale ID. The ID is made up of the language and region codes supported by Wix. For example, "en-US"
.
Revision number, which increments by 1 each time the locale is updated. To prevent conflicting changes, the existing revision must be passed when updating the locale object.
Date and time the locale was created.
Date and time the locale was last updated.
Language code. For example, "en"
for English.
Region code. For example, "UK"
for United Kingdom.
Locale visibility status.
Indicates whether the locale is the site's primary locale.
Indicates whether the locale is treated as the default for site visitors when no language is specified in the URL of the site.
Flag icon as a 3-letter language code based on Wix's supported locales. For example, "USA"
for the United States flag icon.
Regional format for determining how to display data types such as dates, times, numbers, and currencies. For example, "en-US"
to format dates like this: MM-DD-YYYY
.
Default URL structure for the locale's live site URL, based on the locale's settings, unless overridden.
Optional override for the locale's default URL structure.
Language code based on Wix's supported locales, used to specify the target language when
translatable content is sent for machine translation. For example, "ES"
for Spanish
or "ZH_TW"
for Traditional Chinese.
Default: The locale's languageCode
value.
The locale's displayName
, unless overridden.
Default display name for the locale, inferred from the locale ID and region code.
Optional override for the locale's display name.