> 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: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-management/multilingual/translation/translation-content/introduction.md

## Article Content:

# About the Translation Content API

The Translation Content API allows you to access and manage a site's translation content based on the
defined [translation schema](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-schema/introduction.md).

With the Translation Content API, your app can:

+ Create, update, and delete content.
+ Get, query, and search existing content.
+ Listen to events when content is created, updated, and deleted.

This API is based on [Wix Multilingual](https://support.wix.com/en/article/about-wix-multilingual).

## Steps for managing translation content

### Step 1 | Add original content in the site's primary language

To begin, you need to add the base content for translation in the site's primary language. This content aligns with the
schema you’ve already defined and serves as the foundation for future translations. \
<br>Depending on your app, this content can either be user-generated or default content provided by your app:

+ **User-generated content:** If your app collects user-generated content, prompt Wix users to provide the relevant
  content. Call
  the [Create Content](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/create-content.md)
  method to save this collected content, ensuring it aligns with the schema you defined in the previous step.
+ **Default content:** If your app provides boilerplate or default content, call
  the [Create Content](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/create-content.md)
  method with this default content initially. If at a later time users provide their own content, call
  the [Update Content](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/update-content.md)
  method to replace the default content with user-generated content.

### Step 2 | Translate and store the content

Once the original content is added, it can be translated and stored in the following ways:

+ The Wix user can generate translations in
  the [Translation Manager](https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager), either
  manually or using machine translation. When the Wix user saves the translations, the Translation Manager automatically
  calls
  the [Translation Content API](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/introduction.md)
  to store the translated content and mark it as ready to publish.
+ Your app can generate the translations or use a third party service to generate them.
  Wix's [Machine Translation API](https://dev.wix.com/docs/api-reference/business-management/multilingual/machine-translation/machine-translation/introduction.md)
  is available for this purpose. Then, call
  the [Translation Content API](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/introduction.md)
  to store the translated content and flag it for publishing.

## Before you begin

It's important to note the following points before starting to code:

+ You can only add translation content to entities that have an existing translation schema. Use
  the [Translation Schema API](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-schema/introduction.md)
  method to create the schema.
+ The translation content is validated against the corresponding translation schema. For example, if you create a schema
  field with `"type": "VIDEO"`, you can't set the create content value for that field to an `"IMAGE"`. If you add
  invalid content you'll get a validation error.
+ This API stores both the original and the translated content, but doesn’t manage site locales or currency conversions.
+ You can only use this API on sites where the Wix user has installed
  the [Wix Multilingual app](https://www.wix.com/app-market/wix-multilingual?searchLocation=home).

## Use cases

+ [Translate English content in your app to French](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/sample-flows.md#translate-english-content-in-your-app-to-french).
+ [Update default app content with user-generated content](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/sample-flows.md#update-default-app-content-with-user--generated-content).

## Terminology

+ **ContentField:** This represents the actual content that will be translated, mapped to a specific field in the
  schema. The ContentField holds the original or translated data (such as the text for a product title) and is linked to
  its corresponding `SchemaField`, ensuring it follows the schema’s validation rules.
+ **Fields:** A list of fields for the translation content. This property uses a string to map to
  a `ContentField` (`Map<string, ContentField>`). The string serves as a key, which you'll need to access each field in
  the content and when referencing a translation schema.
+ **Published:** A boolean that indicates whether translated content is ready to publish.
+ **Publish status:** The aggregated publish status across all content fields. Supported values:
    + `UNPUBLISHED`: None of the fields have been marked as ready to publish.
    + `PUBLISHED`: All of the fields have been marked as ready to publish.
    + `PARTIALLY_PUBLISHED`: Some of the fields have been marked as ready to publish.

## SDK Setup
  `@wix/multilingual`

To use the API, install the `@wix/multilingual` package.

#### Install the package

Follow the installation instructions for your development environment.

| Development environment | Installation method |
|--|--|
| Wix sites (editor or IDE) | Use the [package manager](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md). |
| Wix sites (local IDE) | Run `wix install @wix/multilingual` using the [Wix CLI](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-with-the-wix-cli.md).|
| Blocks apps | Use the same installation method as Wix sites. |
| CLI and self-hosted apps | Run `npm install @wix/multilingual` or `yarn add @wix/multilingual`. |
| Headless sites and apps | Run `npm install @wix/multilingual` or `yarn add @wix/multilingual`. |

#### Import the package

To import the package in your code:

```js
import { translationContents } from '@wix/multilingual'
```

#### Import types

Types for this API are accessed through the `translationContents` namespace you already imported above, as `translationContents.<TypeName>`, using any type name shown in these docs.
  