> 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

# listSupportedLocales

# Package: @wix/multilingual

# Namespace: locales

# Method link: https://dev.wix.com/docs/api-reference/business-management/multilingual/locale-management/locales/list-supported-locales.md

## Permission Scopes:
Wix Multilingual: SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS

## Introduction

Retrieves a list of all Wix-supported locales that can be added to a site.

Call this method to display supported language details when creating or updating a locale.

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.multilingual.locales.listSupportedLocales(options)
 Description: Retrieves a list of all Wix-supported locales that can be added to a site.  Call this method to display supported language details when creating or updating a locale.
 Method parameters:
   param name: options | type: ListSupportedLocalesOptions  none  
        - name: languageCode | type: string | description: Language to filter by. For example, `"en"` for all English locales.  | validation: format LANGUAGE
        - name: includeAllLocales | type: boolean | description: Whether to include all possible regional variants for each language code in the response. When `false`, only the default locale, such as `"en-US"`, is returned and regional variants like `"en-GB"` and `"en-AU"` are excluded.  
        - name: includeRegionOptions | type: boolean | description: Whether to include region-specific options such as flags and regional codes for each locale in the response.  
 Return type: PROMISE<ListSupportedLocalesResponse>
  - name: supportedLocales | type: array<SupportedLocale> | description: A list of all the locales that can be added to a site.  
     - name: _id | type: string | description:   | validation: format LANGUAGE_TAG
     - name: languageCode | type: string | description: Language code.  | validation: format LANGUAGE
     - name: regionCode | type: string | description: Region code.  | validation: format COUNTRY
     - name: defaultFlag | type: string | description: Default flag code for the locale.  | validation: maxLength 3
     - name: defaultRegionalFormat | type: string | description: Default format for how to display data types such as dates, times, numbers, and currencies.  | validation: format LANGUAGE_TAG
     - name: machineTranslationCode | type: string | description: Language code used when content is sent for machine translation.  | validation: format LANGUAGE_TAG
     - name: displayName | type: string | description: Display name of the locale.  | validation: maxLength 30
     - name: regionOptions | type: array<RegionOptions> | description: All flags and their regional formats per locale.  | validation: maxItems 100
        - name: flag | type: string | description: Flag code of the region.  | validation: maxLength 3
        - name: regionalFormat | type: string | description: Format for how to display data types such as dates, times, numbers, and currencies.  | validation: format LANGUAGE_TAG


```

### Examples

### listSupportedLocales
```javascript
import { locales } from '@wix/multilingual';

async function listSupportedLocales(options) {
  const response = await locales.listSupportedLocales(options);
};
```

### listSupportedLocales (with elevated permissions)
```javascript
import { locales } from '@wix/multilingual';
import { auth } from '@wix/essentials';

async function myListSupportedLocalesMethod(options) {
  const elevatedListSupportedLocales = auth.elevate(locales.listSupportedLocales);
  const response = await elevatedListSupportedLocales(options);
}
```

### listSupportedLocales (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { locales } from '@wix/multilingual';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { locales },
  // Include the auth strategy and host as relevant
});


async function listSupportedLocales(options) {
  const response = await myWixClient.locales.listSupportedLocales(options);
};
```

---