> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Locales

# Type: Locale Object

# Link: https://dev.wix.com/docs/api-reference/business-management/multilingual/locale-management/locales/locale-object.md

## Description: A `locale` represents a language and region code that defines how a site's content should be displayed for a specific audience.

## Schema:

```json
 Type: Locale Object | type: Locale
 Description: A `locale` represents a language and region code that defines how a site's content should be displayed for a specific audience.
       - name: id  | type: string | description: Locale ID.  The locale ID is made up of the language and region codes supported by Wix. For example, `"en-US"` for U.S. English.
           - name: value  | type: string | description: 
       - name: revision  | type: string | description: 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.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: Date and time the locale was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the locale was last updated.
       - name: languageCode  | type: string | description: Language code. For example, `"en"` for English.
       - name: regionCode  | type: string | description: Region code. For example, `"UK"` for United Kingdom.
       - name: visibility  | type: string | description: Locale visibility status.
           enum: HIDDEN, VISIBLE
       - name: primaryLocale  | type: boolean | description: Whether the locale is the site's primary locale.
           - name: value  | type: boolean | description: 
       - name: visitorPrimaryLocale  | type: boolean | description: Whether the locale is the site's visitor primary locale.
       - name: flag  | type: string | description: Flag icon as a 3-letter language code based on Wix's supported locales. For example, `"USA"` for the United States flag icon.
       - name: regionalFormat  | type: string | description: 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`.
       - name: effectiveUrlStructure  | type: string | description: Default URL structure for the locale's live site URL, based on the locale's settings, unless overridden.
           enum: SUBDIRECTORY, SUBDOMAIN, QUERY_PARAM
       - name: urlStructureOverride  | type: UrlStructureOverride | description: Optional override for the locale's default URL structure.
           - name: urlStructure  | type: string | description: URL structure to use instead of the default.
       - name: machineTranslationCode  | type: string | description: 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.
       - name: effectiveDisplayName  | type: string | description: The locale's `displayName`, unless overridden.
       - name: displayName  | type: string | description: Default display name for the locale, inferred from the locale ID and region code.
       - name: overrideDisplayName  | type: string | description: Optional override for the locale's display name.

```