> 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: Translate a Whole Site with Wix Multilingual

## Article: Translate a Whole Site with Wix Multilingual

## Article Link: https://dev.wix.com/docs/api-reference/business-management/multilingual/skills/translate-a-whole-site-with-wix-multilingual.md

## Article Content:

# Translate a Whole Site with Wix Multilingual

Start a full-site machine translation job from one locale to another with the **Async Site Translator** API, and follow it until it finishes. Use when a user asks to translate an entire site (not individual strings or entities) into another language.

This is the right tool when a user wants every translatable field on a site translated into a target locale in one shot, rather than translating individual entities or strings.

## Overview

Calling Translate Site enables:

- One-call translation of every translatable field on a site from a **main locale** into a **translated locale**
- **Field status filtering**: translate only untranslated fields, only outdated fields, both, or every field
- Optional **content filtering**: narrow the translation to one section (a translation schema) or to specific items
- **Asynchronous execution**: the call returns immediately with a `jobId`; the actual translation runs in the background

## When to Use This Recipe

Use Translate Site when **all** of the following are true:

- The user wants to translate the site as a whole (not one collection item, not a single string), or one whole section of it
- The target locale has already been added to the site, or you add it first (see **Prerequisites**)

Do **not** use this recipe for:

- Translating a single string or a text the user pastes → use [Machine Translate](https://dev.wix.com/docs/api-reference/business-management/multilingual/machine-translation/machine-translation/machine-translate.md), or translate it yourself
- Translating a single CMS item or app entity by hand → use the [Translation Content API](https://dev.wix.com/docs/api-reference/business-management/multilingual/translation/translation-content.md) directly
- Editing or reviewing translations after the fact → that happens through the Translation Content layer, or in the Translation Manager in the dashboard

## API

Every call is a site call (the site's ID) except Query Sites, which is an account call. The Async Site Translator is in beta.

| Method | Endpoint |
|---|---|
| [Query Sites](https://dev.wix.com/docs/api-reference/account-level/sites/skills/query-sites.md) (account) | `POST https://www.wixapis.com/site-list/v2/sites/query` |
| [List Installed Apps](https://dev.wix.com/docs/api-reference/business-management/app-installation/skills/list-installed-apps.md) | `GET https://www.wixapis.com/apps-installer-service/v1/app-instances` |
| [Install an App](https://dev.wix.com/docs/api-reference/business-management/app-installation/skills/install-wix-apps.md) | `POST https://www.wixapis.com/apps-installer-service/v1/app-instance/install` |
| [Get Locale Settings](https://dev.wix.com/docs/api-reference/business-management/multilingual/locale-management/locale-settings/get-locale-settings.md) | `GET https://www.wixapis.com/locale-settings/v2/settings` |
| [Set Multilingual Mode](https://dev.wix.com/docs/api-reference/business-management/multilingual/locale-management/locale-settings/set-multilingual-mode.md) | `POST https://www.wixapis.com/locale-settings/v2/settings/mode` |
| [Query Locales](https://dev.wix.com/docs/api-reference/business-management/multilingual/locale-management/locales/query-locales.md) | `POST https://www.wixapis.com/locales/v2/locale/query` |
| [Create Locale](https://dev.wix.com/docs/api-reference/business-management/multilingual/locale-management/locales/create-locale.md) | `POST https://www.wixapis.com/locales/v2/locale` |
| [Query Contents](https://dev.wix.com/docs/api-reference/business-management/multilingual/translation/translation-content/query-contents.md) | `POST https://www.wixapis.com/translation-content/v1/contents/query` |
| [List Site Schemas](https://dev.wix.com/docs/api-reference/business-management/multilingual/translation/translation-schema/list-site-schemas.md) | `GET https://www.wixapis.com/translation-schema/v1/schemas/site` |
| [Get Credit Data](https://dev.wix.com/docs/api-reference/business-management/multilingual/machine-translation/credit-data/get-credit-data.md) | `GET https://www.wixapis.com/translation-credits/v1/credit` |
| [Translate Site](https://dev.wix.com/docs/api-reference/business-management/multilingual/machine-translation/async-site-translator/translate-site.md) | `POST https://www.wixapis.com/multilingual/v3/async-site-translator/translate` |
| [Get Translation Job Status](https://dev.wix.com/docs/api-reference/business-management/multilingual/machine-translation/async-site-translator/get-translation-job-status.md) | `GET https://www.wixapis.com/multilingual/v3/async-site-translator/translate/status/{jobId}` |

## Prerequisites

1. **Wix Multilingual installed** on the site (app ID `14d84998-ae09-1abf-c6fc-3f3cace5bf19`; install it with [Install Wix Apps](https://dev.wix.com/docs/api-reference/business-management/app-installation/skills/install-wix-apps.md)).
2. **Multilingual mode enabled** on the site (`POST /locale-settings/v2/settings/mode { multilingualModeEnabled: true }`).
3. **Main locale** is the site's existing primary locale.
4. **Translated locale** has been added as a secondary locale on the site (`POST /locales/v2/locale`).
5. **Word credits**: required for **non-Harmony sites only**. A full-site job can consume significant credit. **Harmony sites skip this check entirely**; see [Credits & Cost](#credits--cost) for how to tell the two apart.

The first script below checks all of these in one call and fixes the missing ones that the user's request already covers.

## Check and prepare the site

Set `TARGET_LANGUAGE` to the language the user asked for (a language code such as `"fr"`, `"es"`, `"ar"`). The script reads the site's editor type, whether Wix Multilingual is installed, the locale settings, the site's locales and, on a non-Harmony site, its word credits, and, when `PREPARE` is `true`, installs the app, turns multilingual mode on and adds the target language as a hidden secondary locale. Run it with `PREPARE: false` first when the user only asked a question; asking to translate the site into a language is the go-ahead for these preparation steps.

```javascript
async function () {
  const SITE_ID = "<SITE_ID>";
  const TARGET_LANGUAGE = "fr";
  const PREPARE = true;
  const WAIT_FOR_CONTENT = true;
  const MULTILINGUAL_APP = "14d84998-ae09-1abf-c6fc-3f3cace5bf19";
  const wait = ms => new Promise(resolve => setTimeout(resolve, ms));
  const retry = async (options, delays = [1000, 2000, 4000]) => {
    let last;
    for (const delay of [0, ...delays]) {
      if (delay) await wait(delay);
      try { return await wix.request(options); } catch (e) { last = e; }
    }
    throw last;
  };
  const steps = [];

  let editorType = "UNKNOWN"; // UNKNOWN takes the non-Harmony path (credit check), the safe default
  try {
    const sites = await wix.request({ scope: "account", method: "POST", url: "https://www.wixapis.com/site-list/v2/sites/query",
      body: { query: { filter: { id: { $in: [SITE_ID] } }, cursorPaging: { limit: 1 } } } });
    editorType = sites.data.sites?.[0]?.editorType ?? "UNKNOWN";
  } catch (e) { /* keep UNKNOWN */ }

  const apps = await wix.request({ method: "GET", url: "https://www.wixapis.com/apps-installer-service/v1/app-instances" });
  let installed = (apps.data.appInstances ?? []).some(a => a.appDefId === MULTILINGUAL_APP);
  if (!installed && PREPARE) {
    await wix.request({ method: "POST", url: "https://www.wixapis.com/apps-installer-service/v1/app-instance/install",
      body: { tenant: { tenantType: "SITE", id: SITE_ID }, appInstance: { appDefId: MULTILINGUAL_APP } } });
    installed = true; steps.push("installed Wix Multilingual");
  }
  if (!installed) return { editorType, installed, note: "Wix Multilingual isn't installed." };

  let settings = (await retry({ method: "GET", url: "https://www.wixapis.com/locale-settings/v2/settings" })).data.localeSettings;
  if (!settings.multilingualModeEnabled && PREPARE) {
    settings = (await retry({ method: "POST", url: "https://www.wixapis.com/locale-settings/v2/settings/mode",
      body: { multilingualModeEnabled: true } })).data.localeSettings;
    steps.push("turned on multilingual mode");
  }
  const queryLocales = async () => (await retry({ method: "POST", url: "https://www.wixapis.com/locales/v2/locale/query",
    body: { query: { cursorPaging: { limit: 100 } } } })).data.locales ?? [];
  let locales = settings.multilingualModeEnabled ? await queryLocales() : [];
  let target = locales.find(l => !l.primaryLocale && l.languageCode === TARGET_LANGUAGE);
  if (!target && settings.multilingualModeEnabled && PREPARE) {
    target = (await retry({ method: "POST", url: "https://www.wixapis.com/locales/v2/locale",
      body: { locale: { languageCode: TARGET_LANGUAGE, visibility: "HIDDEN" } } })).data.locale;
    steps.push(`added ${target.effectiveDisplayName ?? target.displayName ?? TARGET_LANGUAGE} as a hidden language`);
    locales = await queryLocales();
  }
  const primary = locales.find(l => l.primaryLocale) ?? settings.primaryLocale;
  // Right after Wix Multilingual is set up, the site's translatable content takes a few seconds to
  // appear; a job started before that finds nothing to translate. Check for it, wait while it's
  // missing, and let it settle when it only just appeared.
  let contentReady = false;
  if (settings.multilingualModeEnabled && primary?.id) {
    const attempts = WAIT_FOR_CONTENT ? 15 : 1;
    for (let attempt = 0; attempt < attempts && !contentReady; attempt++) {
      if (attempt > 0) await wait(3000);
      const contents = (await retry({ method: "POST", url: "https://www.wixapis.com/translation-content/v1/contents/query",
        body: { query: { filter: { locale: primary.id }, cursorPaging: { limit: 1 } } } })).data.contents ?? [];
      contentReady = contents.length > 0;
      if (contentReady && (attempt > 0 || steps.length > 0)) await wait(8000);
    }
  }
  // Harmony sites don't use word credits; every other site does.
  let credits = null;
  if (editorType !== "ODEDITOR") {
    try {
      const c = (await wix.request({ method: "GET", url: "https://www.wixapis.com/translation-credits/v1/credit" })).data.creditData ?? {};
      credits = { quotaType: c.quotaType, used: c.creditsUsed ?? 0,
        remaining: c.quotaType === "LIMITED" ? (c.limitedQuota?.quota ?? 0) - (c.creditsUsed ?? 0) : null };
    } catch (e) { credits = { error: String((e && e.message) || e) }; }
  }
  return {
    editorType,
    harmony: editorType === "ODEDITOR",
    multilingualModeEnabled: settings.multilingualModeEnabled,
    mainLocale: primary?.id,
    translatedLocale: target?.id ?? null,
    targetVisibility: target?.visibility ?? null,
    locales: locales.map(l => ({ id: l.id, name: l.effectiveDisplayName ?? l.displayName ?? l.id, primary: !!l.primaryLocale, visibility: l.visibility })),
    steps,
    contentReady,
    credits
  };
}
```

Use `mainLocale` and `translatedLocale` from the result, exactly as returned, in Translate Site. A language the site already has keeps its visibility; a language this script adds is hidden from visitors until the user makes it visible (the translations aren't published yet either).

Start the job only after this script has returned, in a separate call, and only when `contentReady` is `true`. Just after Wix Multilingual is installed or multilingual mode is turned on, the site's translatable content takes a few seconds to appear, and a job started before that finishes at once with 0 fields while most of the site stays untranslated. If `contentReady` is `false`, run the script again (with `PREPARE: false`, `WAIT_FOR_CONTENT: true`) before starting; if it is still `false`, the site has no translatable content yet: say so instead of starting a job. If a job on a site you just prepared still finishes with 0 processed fields, don't report the site as translated: wait half a minute and start one more `UNTRANSLATED_ONLY` job.

## Translate Site

### Request Body

```json
{
  "mainLocale": "string",
  "translatedLocale": "string",
  "filterByStatus": "UNTRANSLATED_ONLY",
  "filter": {}
}
```

### Field Reference

| Field | Type | Description | Required |
|---|---|---|---|
| `mainLocale` | string | Locale ID to translate **from**: the site's primary locale, exactly as Query Locales returns it (e.g. `"en"`, or `"en-US"` on a site whose locale IDs carry regions). | Yes |
| `translatedLocale` | string | Locale ID to translate **into**. Must already exist on the site (e.g. `"fr"`, `"de"`, `"es"`). | Yes |
| `filterByStatus` | enum | Which fields to include, by translation status: `UNTRANSLATED_ONLY`, `OUTDATED_ONLY`, `UNTRANSLATED_AND_OUTDATED` or `ALL_FIELDS`. | Yes |
| `filter` | object | Content filter to scope the job to a subset of entities. Leave it out, or send `{}`, to translate everything. | No |

### Successful Response

```json
{
  "jobId": "string"
}
```

The `jobId` identifies the background translation job. Keep it so you can follow the job and so later turns can refer to the same job.

## Example: Translate an English Site into French

```http
POST https://www.wixapis.com/multilingual/v3/async-site-translator/translate
Content-Type: application/json

{
  "mainLocale": "en",
  "translatedLocale": "fr",
  "filterByStatus": "UNTRANSLATED_ONLY"
}
```

Response:

```json
{
  "jobId": "5f1c2a8e-3b6d-4f9a-9b21-77e0a4d8b1c3"
}
```

Then follow the job (next sections) and tell the user how it went.

## Async Behaviour

Translate Site returns the moment the job is accepted, **not** when translation finishes. Consequences for the assistant:

- Do **not** report "site translated" — report "translation job started" until the job reaches `COMPLETED`.
- Do **not** expect translated content to be queryable immediately afterwards.
- Translated content lands in the standard Translation Content store, marked ready to publish and machine translated. The site owner reviews it in the Translation Manager and publishes the site to make it visible to visitors.
- **The job is not finished when the call returns.** Do not hand the user a raw `jobId` and stop — poll the status endpoint until the job reaches a terminal state (see **Polling Pattern** below).

## Important Notes

### Field Status Filter

`filterByStatus` is required. Use `UNTRANSLATED_ONLY` for "translate my site": it translates what has no translation yet and leaves existing translations alone. Use `OUTDATED_ONLY` when the user changed content that was already translated and wants it refreshed, and `UNTRANSLATED_AND_OUTDATED` for both. Use `ALL_FIELDS` only when the user explicitly asks to re-translate everything: it overwrites existing translations, including ones the owner wrote or edited by hand, so say that and get a yes first.

### Content Filter

`filter` narrows translation to a subset of entities. When the user requests "translate the whole site", leave it out or send `{}`. Only populate `filter` when the user explicitly asks to limit the run: `{"schemaId": "<SCHEMA_ID>"}` translates one section, and `{"entityId": {"$in": ["<ID_1>", "<ID_2>"]}}` translates specific items.

To find a section's schema ID, list the site's translation schemas and match the section the user named (for example their store products or blog posts) on `key.entityType`:

```javascript
async function () {
  const res = await wix.request({ method: "GET", url: "https://www.wixapis.com/translation-schema/v1/schemas/site?paging.limit=100" });
  return (res.data.schemas ?? []).map(s => ({ id: s.id, appId: s.key?.appId, entityType: s.key?.entityType, fields: Object.keys(s.fields ?? {}).length }));
}
```

Pass the matching schema's `id` as `filter.schemaId` in Translate Site. If no schema clearly matches what the user named, show them the `entityType` values and ask which one they mean. Never put a `locale` key in the filter: the job already scopes itself to `mainLocale`, and your own `locale` value overrides that.

### Locale Codes

Use the locale `id` values exactly as Query Locales returns them for the site. If the site's locale IDs are `en` and `he`, use `en`; if they are `en-US` and `he-IL`, use `en-US`. Don't substitute a regional format for a plain one or the other way round, or the job fails to start (`LOCALE_NOT_FOUND`).

### One Job at a Time

Several jobs can run against the same site at once, and they don't coordinate. Two jobs started close together can translate the same field twice and spend word credits twice. Wait for a job to reach `COMPLETED` or `FAILED` before starting another one over the same content.

### Credits & Cost

**Whether a credit check is needed depends on the site's editor type.** Determine the editor type *first* (the check script returns it), then follow the matching branch below.

#### Detecting the editor type

[Query Sites](https://dev.wix.com/docs/api-reference/account-level/sites/skills/query-sites.md) returns each site's `editorType`:

- `editorType` is **`ODEDITOR`** → **Harmony site**.
- Any other value → **non-Harmony site**: classic Wix Editor (`EDITOR`), Wix Studio (`STUDIO`, `STUDIO_TWO`), `EDITORLESS` and the rest. All of them draw on word credits; only Harmony sites are translated with AI translation, which doesn't (see the [Async Site Translator introduction](https://dev.wix.com/docs/api-reference/business-management/multilingual/machine-translation/async-site-translator/introduction.md), *Word credits*).

#### Harmony sites — no credit check

Harmony sites are translated with AI translation, which doesn't draw on the word credit balance. For Harmony sites the assistant must:

- **Skip** the credit check — do **not** call Get Credit Data.
- **Not** surface any credit balance, cost estimate, or "this will use credit" warning.
- **Not** ask the user for confirmation on cost grounds.
- Proceed directly to Translate Site.

#### Non-Harmony sites — check credit first

Whole-site translation can consume substantial word credit (1 credit = 1 word), especially on content-heavy sites. Before starting the job on a non-Harmony site, the assistant should:

1. Check remaining credit: the check script's `credits` (from Get Credit Data, `GET https://www.wixapis.com/translation-credits/v1/credit`). With `quotaType: "LIMITED"`, `remaining` is the quota minus the credits used; with `"UNLIMITED"`, there is no limit.
2. Surface the current credit balance to the user.
3. Ask for confirmation before triggering the job. If the user's request already says to go ahead (for example "translate it, no need to confirm"), that is the confirmation: start the job and include the balance in your reply.

Credits are checked once, when the job starts. If the site doesn't have enough, Translate Site fails with `NOT_ENOUGH_CREDITS`, and its `requiredWords` says how many words need credit.

## Start the job

```javascript
async function () {
  const BODY = { mainLocale: "en", translatedLocale: "fr", filterByStatus: "UNTRANSLATED_ONLY" };
  try {
    const res = await wix.request({ method: "POST", url: "https://www.wixapis.com/multilingual/v3/async-site-translator/translate", body: BODY });
    return { started: true, jobId: res.data.jobId };
  } catch (e) {
    return { started: false, error: String((e && e.message) || e), details: e?.response?.data ?? e?.details ?? null };
  }
}
```

## Tracking the Job — Get Translation Job Status

Translate Site only *starts* the work. To know whether the translation actually succeeded — and to keep the user informed — poll the status endpoint with the `jobId` returned by Translate Site.

### Response Body

```json
{
  "jobId": "string",
  "jobState": "RUNNING",
  "totalFieldsCount": 0,
  "translatedFieldsCount": 0,
  "totalFailedFieldsCount": 0,
  "failedFields": [
    {
      "fieldId": "string",
      "contentId": "string",
      "schemaId": "string",
      "failureReason": "string",
      "errorCode": "string"
    }
  ],
  "createdDate": "string",
  "updatedDate": "string"
}
```

### Response fields

| Field | Type | Description |
|---|---|---|
| `jobId` | string (GUID) | Echoes the requested job ID |
| `jobState` | enum | Current state — see below |
| `totalFieldsCount` | number | Fields the job has **processed so far**, successes and failures combined. While the job runs this is not the job's full scope, so it can't be used as a progress denominator. |
| `translatedFieldsCount` | number | Fields successfully translated so far |
| `totalFailedFieldsCount` | number | Fields that failed |
| `failedFields` | array | Fields that failed, each with error detail (max 2000 entries; compare with `totalFailedFieldsCount` to see if it was cut) |

Each entry in `failedFields`:

| Field | Type | Description |
|---|---|---|
| `fieldId` | string | Identifier of the field that failed to translate |
| `contentId` | string | Identifier of the content item the field belongs to |
| `schemaId` | string | Identifier of the schema/entity type of the content |
| `failureReason` | string | Human-readable reason the field failed |
| `errorCode` | string | Machine-readable error code, for example `CONTENT_TOO_LONG` |

### `jobState` values

| Value | Meaning |
|---|---|
| `PENDING` | Job is queued, not started yet |
| `RUNNING` | Translation is actively in progress |
| `COMPLETED` | The job finished (check `failedFields` for partial failures) |
| `FAILED` | The job stopped before finishing. Content translated before it stopped is kept. |

Any other value: treat as non-terminal and keep polling.

## Polling Pattern

**A Translate Site call is _not_ "done" when it returns a `jobId`. Returning the job ID to the user is not an acceptable end state.** Because translation runs in the background, poll the status endpoint and keep following the job until it reaches a terminal state (`COMPLETED` or `FAILED`).

Concretely, the assistant must:

1. **Keep polling** Get Translation Job Status with the script below — never hand the user a raw `jobId` and consider the task finished.
2. **Report progress** as fields translated so far (`translatedFieldsCount`), not as a percentage: the job's full scope isn't known until it completes.
3. **Announce the terminal state** in plain language — success (calling out any failed fields) or failure — not just the raw enum value.

**Polling interval:** 10–15 seconds. Large sites with thousands of fields can take minutes. The script polls for up to about 50 seconds per run; while the job is still `PENDING` or `RUNNING`, run it again. After about 10 minutes in total, stop and tell the user the translation is still running in the background, how many fields are done so far, and that you can check it again with them later.

**Terminal states:** `COMPLETED` and `FAILED`. Stop polling when either is reached.

```javascript
async function () {
  const JOB_ID = "<JOB_ID>";
  const wait = ms => new Promise(resolve => setTimeout(resolve, ms));
  let status;
  for (let attempt = 0; attempt < 5; attempt++) {
    if (attempt > 0) await wait(12000);
    status = (await wix.request({ method: "GET",
      url: `https://www.wixapis.com/multilingual/v3/async-site-translator/translate/status/${JOB_ID}` })).data;
    if (status.jobState === "COMPLETED" || status.jobState === "FAILED") break;
  }
  const failed = status.failedFields ?? [];
  return {
    jobState: status.jobState,
    finished: status.jobState === "COMPLETED" || status.jobState === "FAILED",
    translatedFields: status.translatedFieldsCount ?? 0,
    processedFields: status.totalFieldsCount ?? 0,
    failedCount: status.totalFailedFieldsCount ?? failed.length,
    failedSample: failed.slice(0, 10).map(f => ({ reason: f.failureReason, errorCode: f.errorCode, schemaId: f.schemaId, contentId: f.contentId })),
    failedListTruncated: (status.totalFailedFieldsCount ?? failed.length) > failed.length,
    updatedDate: status.updatedDate
  };
}
```

### Worked example — what to tell the user

- Still running after a poll: "Translating your site into French… 96 fields done so far. Still working."
- `COMPLETED`, no failures: "French translation finished — 420 fields translated. They're marked ready to publish: review them in the Translation Manager, then publish your site to show them to visitors."
- `COMPLETED` with failures: "French translation finished: 417 fields translated, 3 couldn't be translated. Want me to list the fields that failed?" (each failure carries `failureReason` and `errorCode`; never claim a clean success when `failedCount` is above 0).
- `FAILED`: "The French translation stopped before it finished; the 96 fields it translated are kept. Want me to try again?"
- Mention that a language this recipe added is still hidden from visitors.

## Error Handling

### Common Errors

**Wix Multilingual not installed, or multilingual mode off**

Resolution: run the check script with `PREPARE: true` (install the app, then turn on multilingual mode).

**Translated locale not on site** (`LOCALE_NOT_FOUND`, 404)

Resolution: add the locale with Create Locale (the check script does this), then use the IDs it returns.

**Same source and target**

Resolution: confirm with the user which locale they want to translate **into**.

**Language can't be machine translated** (`LANGUAGE_NOT_SUPPORTED`, 400, or `MT_CODE_NOT_CONFIGURED`, 428)

Resolution: tell the user Wix can't machine-translate the site into that language.

**Insufficient credit** (`NOT_ENOUGH_CREDITS`, 428, with `requiredWords`)

Resolution: surface the shortfall to the user (how many words need credit); suggest buying a [translation package](https://support.wix.com/en/article/wix-multilingual-auto-translating-your-site#purchasing-translation-packages) or scoping the job with `filter`/`filterByStatus`.

On any other error, say the translation couldn't be started (or checked) and give the error; never report a translation that didn't run.

## See Also

- [Async Site Translator API](https://dev.wix.com/docs/api-reference/business-management/multilingual/machine-translation/async-site-translator/introduction.md)
- [Machine Translation API](https://dev.wix.com/docs/api-reference/business-management/multilingual/machine-translation/machine-translation.md) — for single strings
- [Translation Content API](https://dev.wix.com/docs/api-reference/business-management/multilingual/translation/translation-content.md) — read/write individual translations after the job completes
- [Locales API](https://dev.wix.com/docs/api-reference/business-management/multilingual/locale-management/locales.md) — add/list site locales
- [Locale Settings API](https://dev.wix.com/docs/api-reference/business-management/multilingual/locale-management/locale-settings.md) — enable multilingual mode