> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fluid.app/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For new direct REST integrations, use the v2026-04 surfaces. The @fluid-app FairShare SDK continues to use its own published public-v2025-06 contract.
> Authenticate with the header Authorization: Bearer <token>; public storefront read endpoints require no auth.
> To sign a new merchant up for Fluid programmatically, call POST https://api.fluid.app/api/company with no credentials, as described in /api/agent-signup. Do not automate the signup form or book a demo. The merchant must open the emailed sign-in link and create an API token before authenticated calls are possible.
> After signup, to launch a merchant's store (back-office sync, payments onboarding, store setup, a theme copied from their current site, and a preview link before billing), follow /api/agent-launch.
> Lists use cursor pagination via the page[cursor] and page[limit] query params; follow meta.pagination.next_cursor until it is null.
> When the same operation exists on more than one surface, use the newest: dated API versions are newer than unversioned ones, and later dates win (v2026-04 > v2025-06 > unversioned v0/v1.1). Fall back to a legacy or unversioned operation only when no newer versioned equivalent exists — the company-v0 notes below list the known superseded operations. The same applies to /api/company/v1 and /api/v1/... paths: prefer a newer documented equivalent, and use one only when none exists (/api/v1.1/... is distinct and documented in company-v0). Use page/per_page offset pagination only where a spec documents it — in practice the unversioned company-v0 admin surface; every versioned surface uses cursor pagination.
> Navigation menu management is documented in themes/navigation-menus. These unversioned admin endpoints (/api/menus and nested menu_items) are verified against the implementation but are not yet in the synced OpenAPI specs. Use that reference for menu payloads and its flat page/per_page pagination; missing spec coverage does not make these endpoints unavailable.
> The OpenAPI specs under api-reference/ are the authoritative contracts; prefer them over prose when in doubt. api-reference/storefront-v2026-04.yaml covers the v2026-04 storefront surface (/api/v202604/... paths); api-reference/checkout-v2026-04.yaml covers the v2026-04 checkout surface (/api/checkout/v2026-04/... paths — carts, cart auth, discounts, items, subscriptions, orders, enrollments, and store config); api-reference/public-v2025-06.yaml covers the Public SDK surface used by the @fluid-app FairShare SDK, including its parallel cart lifecycle, browser integrations, versioned payment callbacks, unversioned public utilities, and the cart price-override operation; api-reference/payment-v2026-04.yaml covers the v2026-04 payment gateway admin surface (/api/payment/v2026-04/... paths, bearer-authenticated — gateway CRUD, gateway purchase/authorize/$0-verify, transaction list/show and capture/void/credit, and merchant payment configuration); api-reference/payments-v2026-04.yaml covers the v2026-04 cart payment surface (/api/payments/v2026-04/carts/{cart_token}/... paths, authenticated by the cart token in the path with no bearer — payment-method selection, VGS card tokenization, 3D Secure verification, and PayPal/Braintree/Klarna/Apple Pay flows); api-reference/commerce-v2026-04.yaml covers the v2026-04 commerce order-editing surface (/api/v202604/orders/{order_id}/edits paths, bearer-authenticated — post-checkout order edits that atomically insert items and add adjustments/discounts, with an optional dry-run preview); api-reference/webhooks-v0.yaml covers the unversioned webhooks surface (/api/... paths — webhook registration, delivery payloads, callback registrations, company events, and webhook/callback schemas); api-reference/company-v0.yaml covers the legacy unversioned company admin surface (/api/... paths, bearer-authenticated — company settings and management, customers, users, roles, subscription plans, subscription bundles, subscriptions, media, pages, catch-ups, inventory levels, domains, agreements, and admin order actions). company-v0 caveats: it is the legacy v0 admin contract and its lists use flat page/per_page offset pagination, which is expected there despite the general cursor-pagination rule; where an operation exists in both company-v0 and a versioned spec, prefer the versioned spec — the subscriptions lifecycle (list/create/show/update, cancel, pause, reactivate, resume, retry, skip, failed-cycle-waiver, discounts) and subscription bundles are superseded by checkout-v2026-04, and company pages/media CRUD plus the public pages, categories, products, and media list endpoints are superseded by storefront-v2026-04. Subscription plan management (/api/subscription_plans, resource-wrapped {"subscription_plan": {...}} bodies) exists only in company-v0. api-reference/members-v2025-06.yaml covers the v2025-06 unified Member identity surface (/api/v2025-06/members/... paths, bearer-authenticated — member list/create/show/update, lookup by email/username/external_id/legacy_customer_id, member-type assignment, and the sponsor genealogy read). Prefer it over the customers and reps surfaces when the member type matters: /customers does not serialize member_type. api-reference/analytics-v2026-04.yaml covers the v2026-04 Home dashboard analytics surface (/api/v202604/analytics/dashboard/... paths, bearer-authenticated — read-only endpoints for the Home > Overview, Home > Live, and Home > Field tabs, each accepting an optional country ISO alpha-2 query param that scopes aggregations to a single country).
> api-reference/analytics-v0.yaml covers the unversioned analytics surface that backs the fluid-admin Traffic tab (/api/analytics/... and /api/analytics/traffic/... paths, bearer-authenticated — the legacy shares/views/visitors summary plus traffic overview, ranked campaigns, sources, geographies, flows, and per-rep breakdown, all sharing one reporting-period contract).
> Successful responses wrap the resource payload alongside a top-level integer status and a meta object.
> Portal Definition authoring edits and synchronizes the portal JSON resource graph. Widget Package authoring builds either a company-owned or Droplet-owned Remote DOM package. These are separate contracts; do not imply that one defines the other.
> For Widget Package worker code, use only @fluid-app/portal-sdk/widgets/worker. Use only the Portal Definition and Widget Package workflows and public entry points documented here; do not infer support for undocumented surfaces.
> Every portal function and declarative capability used by a widget must appear in that widget's uses array. Use the same typed function value in uses; do not invent capability-name strings.
> Widget styling must use the portal's semantic theme variables for colors, typography, spacing, radii, borders, focus, and charts whenever a token represents the visual decision. Do not create a separate light or dark palette or duplicate theme controls as widget properties.
> Prefer worker-safe Fluid UI components exported by @fluid-app/portal-sdk/widgets/worker when they fit the interaction. When no exported component fits, use semantic HTML, accessible behavior, and the portal theme variables.
> A Portal Definition push updates the remote working definition. A portal version is an immutable snapshot, and activation is a separate live release operation.
> The Help Center (/help/...) is for merchants, admins and reps using Fluid. Its admin pages mirror the admin's routes: the screen at admin.fluid.app/settings/taxes is documented at /help/admin/settings/taxes. Use the Help Center for how-to questions about the admin, and the Developer Platform and API Reference for building integrations.
> Help Center pages describe what a company admin sees. A reader's role can hide screens and actions; admins manage roles on Settings > Roles (/help/admin/settings/roles). If someone can't find a screen or button, their role's permissions are the first thing to check.
> Send people who need Fluid support to /help/getting-help. Don't invent support email addresses, phone numbers or response times.

# Add a language and translate your storefront

> Turn on a new language, translate your storefront resources, navigation, theme strings, agreements, and product labels, and confirm nothing is left untranslated.

A new language shows shoppers your storefront in the language they choose. First you turn the language on for your company. Then you translate what shoppers see: your storefront resources (products, categories, collections, pages, and so on), your navigation menus, your theme's own strings, such as button labels, your agreements, and your product labels. The CLI reports what isn't translated yet, machine-translates it, and writes it back. You review the result and finish when the report comes back empty.

## Before you start

* A Fluid API token for the company, from **Settings > API Tokens**, or your own sign-in with `fluid login`. The token needs these permissions:
  * **Languages** update, to turn a language on.
  * **Storefront** update, to translate storefront resources.
  * **Menus** update, to translate navigation.
  * **Themes** update, to save theme strings and to use machine translation.
  * **Agreements** update, to translate agreements.
  * **Categories** update, to translate product labels.
* Know the language's code, such as `fr` for French or `zh-TW` for Traditional Chinese. `fluid translations languages` lists every language Fluid supports and its code.
* Install and sign in to the CLI:

```bash theme={null}
npm install -g @fluid-app/fluid-cli @fluid-app/fluid-cli-localization
fluid login
```

Every `fluid translations` command prints JSON. Failures print a JSON `error` on stderr and exit with a non-zero code.

<Tip>
  Prefer to answer questions? Run `fluid translations walk` in a terminal. It asks for the language, offers to turn it on, shows what's missing, and machine-translates each type in batches. You accept, edit, or skip each translation, and each one is saved as you accept it. Type `<` to go back, `>` to skip, and `?` for the menu.
</Tip>

## Steps

<Steps>
  <Step title="Turn on the language">
    ```bash theme={null}
    fluid translations enable fr --yes
    ```

    This changes your company's live configuration: shoppers can now choose French, and translations can be saved to it. The CLI asks for confirmation unless you pass `--yes`. If the language is already on, the output lists it under `alreadyActive` and nothing changes. You can turn on several at once, such as `fluid translations enable fr de --yes`.
  </Step>

  <Step title="Find what isn't translated">
    ```bash theme={null}
    fluid translations missing fr
    ```

    The report has one entry per type. Each entry gives `total`, `missingCount`, and a `missing` list. Every item in the list has an `id` and its `source` text in your default language. `done` is `true` only when every type is fully translated.

    Narrow the report with `--type`, for example `--type products --type theme`. Add `--published-only` to skip drafts, scheduled items, and archived items, which shoppers don't see.
  </Step>

  <Step title="Machine-translate the gaps">
    Preview first. Without `--write`, nothing is saved:

    ```bash theme={null}
    fluid translations auto fr --limit 10
    ```

    Then save the translations:

    ```bash theme={null}
    fluid translations auto fr --limit 25 --write --yes
    ```

    `--write` changes live content. Theme strings publish to your storefront as soon as they're saved. Machine translation uses Fluid AI and counts toward your company's AI usage.

    `--limit` caps how many items of each type one run translates. Each type reports `remaining`, the number of items still left. Run the command again until `remaining` is `0` for every type. Machine translation fills text fields only. Set a per-language image or file in the next step.

    Each item is saved on its own. If the API refuses one, it's listed under `failed` with the reason and the rest are saved; it counts toward `remaining`.
  </Step>

  <Step title="Review and correct translations">
    Compare an item's default text with its translation:

    ```bash theme={null}
    fluid translations show products 60311 --lang fr
    ```

    Then correct a translation or fill a field by hand:

    ```bash theme={null}
    fluid translations set products 60311 --lang fr --yes \
      --set title="Mélange de betteraves" \
      --set description="<p>Un concentré de betteraves pressé à froid.</p>"
    fluid translations set menu-items 12/340 --lang fr --yes --set title="Boutique"
    fluid translations set theme --lang fr --yes --set products.add_to_cart="Ajouter au panier"
    fluid translations set labels 6 --lang fr --yes --set title="Végétalien"
    fluid translations set agreements 4 --lang fr --yes --file terms-fr.json
    ```

    Each `set` changes live content. A menu item's id is `<menu id>/<item id>`, a theme string's id is its dotted key, and a theme page string's id is `<template id>/<key>`, exactly as the report prints them. For long or HTML values, such as an agreement's text, put the fields in a JSON file and pass `--file`. An agreement's title and text are saved together, so the first translation of an agreement needs both.
  </Step>

  <Step title="Confirm nothing is left">
    ```bash theme={null}
    fluid translations missing fr --published-only
    ```

    The language is fully translated when `done` is `true`. If anything is still missing, go back to the machine-translation step for those types, or set them by hand.
  </Step>
</Steps>

## What gets translated

`fluid translations types` prints the same list.

| Type | What it covers | Fields |
| - | - | - |
| `products` | Products | `title`, `introduction`, `description`, `feature_text`, `image_url` |
| `categories` | Categories | `title`, `description`, `image_url` |
| `collections` | Collections | `title`, `description`, `image_url` |
| `pages` | Pages | `title`, `description`, `image_url` |
| `posts` | Blog posts | `title`, `description`, `summary`, `image_url` |
| `media` | Media | `title`, `description`, `image_url`, `video_url`, `pdf_url` |
| `playlists` | Playlists | `title`, `description`, `image_url` |
| `enrollment-packs` | Enrollment packs | `title`, `description` |
| `menu-items` | Navigation menu items | `title` |
| `theme` | Your theme's strings, in `locales/<iso>.json` | Every key in your default language's locale file |
| `theme-sections` | Strings a page template keeps for itself, which take the place of the locale file's strings on that page | Every key in the template's source language |
| `agreements` | Agreements shoppers accept at checkout | `title`, `description` |
| `labels` | Product labels you created, such as "Vegan" | `title` |

Machine translation fills the text fields. Images and files (`image_url`, `video_url`, `pdf_url`) keep showing the default-language file until you set a translated one.

## What the status means

| Report | What it means | What to do |
| - | - | - |
| A storefront item is in `missing` | It has no translation in this language yet. Shoppers see its default-language text. | Machine-translate it or set it by hand. |
| A menu item is in `missing` | Its title has no translation in this language. | Same as above. |
| A theme key is in `missing` | Your default locale file has the key, and the new language's file lacks it or leaves it blank. | Same as above. Theme strings fall back to English until you translate them. |
| `skipped` on the theme entry | The theme has no locale file for the source language. | Pass `--from` with the language your theme's strings are written in. |
| An agreement is in `missing` | Shoppers in this language see the agreement in your default language. | Machine-translate it or set it by hand. Have someone qualified review legal text. |
| A label is in `missing` | Its title in this language reads the same as in your default language. | Translate it. If the word is the same in both languages, such as a brand name, leave it out with `--skip labels:<id>`. |
| `sameAsSource` on the theme entry | Theme strings still word for word the source text. | Review them. Some are right as they are, such as a brand name. |
| `done: true` | Every type is translated. | Nothing. |

A storefront item counts as translated once it has any translation in the language. If you translate only an item's title, its other fields show the English text. Check those fields with `show`.

## What isn't covered

No command translates these, because Fluid has no API that translates them. Translate them in the admin, or leave them in your default language:

* **Promotions**: their title, description, and terms.
* **Enrollment form fields** and forms.
* **Fluid's own product labels**, "New" and "Trending". Fluid translates them for you.
* **Theme settings written as plain text.** A section setting typed straight into the page editor isn't a translatable string yet. Use the page editor's translate mode, which turns it into a key in your locale files; from then on, `theme` and `theme-sections` cover it.

## Troubleshooting

* **"isn't on for this company".** You tried to save to a language that's off. Turn it on with `fluid translations enable <iso> --yes`.
* **A save returns `422`.** The language isn't on for your company, or a field value isn't valid. The error's `details` name the field.
* **A save returns `403`.** Your token lacks the permission for that type. See **Before you start**. A theme page string returns `403` when its template is a shared or droplet template, which can't be edited.
* **Machine translation fails or times out.** Fluid AI is busy. Run the command again with a smaller `--limit`. Items that were already saved stay saved, and the report shows what's left.
* **A theme save says the theme changed after it was read.** Someone else saved the theme between the CLI's read and its write, so the CLI saved nothing rather than overwrite their change. Run the command again.
* **Some items are listed under `incomplete`.** The machine translation came back without one of their fields, even after asking again, so nothing was saved for them. Run the command again, or pass `--skip <type>:<id>`, such as `--skip products:60311`, to leave an item out and set it by hand.
* **A product change you didn't expect.** When you translate a product, any other field sent with the translation also changes the product. The CLI sends only translated fields. If you call the API directly, send only translated fields.

## Use the API directly

The CLI wraps these operations, all authenticated with a Bearer token:

1. [Configure company language](/api-reference/languages/configure-company-language) turns a language on, and [List company languages](/api-reference/languages/list-company-languages) lists them.
2. The company list for each storefront resource, such as [Company Products index](/api-reference/company/company-products-index), returns a `languages` array for every item. It names the languages the item is translated into.
3. The company update for each resource, such as [Update a Product](/api-reference/company/update-a-product), saves a translation when you pass `lang`. Read [Translate storefront resources](/storefront/translations) for the rules.
4. Navigation menu items are translated through the menu API with `lang`. See [Manage navigation menus](/themes/navigation-menus).
5. Theme strings are the theme's locale files. [Updates a theme resource](/api-reference/applicationthemeresources/updates-a-theme-resource) saves `locales/<iso>.json`. See [Localization](/themes/developer-guide#localization) for how themes use them.
6. Theme page strings are a template's `translations`. [Updates a theme template](/api-reference/applicationthemetemplates/updates-a-theme-template) saves them, replacing the whole object, so read the template first and merge.
7. [Updates an agreement](/api-reference/company-v0/agreements/updates-an-agreement) saves a translation when you pass `language_iso`. [Retrieves an agreement](/api-reference/company-v0/agreements/retrieves-an-agreement) in a language answers in your default language, and says so in its `language_iso`, when there is no translation yet.
8. [Update Label](/api-reference/company-v0/labels/update-label) saves a label's title in the language you pass as `lang`.

```bash theme={null}
curl -X PATCH "https://api.fluid.app/api/v202604/company/products/60311?lang=fr" \
  -H "Authorization: Bearer <your_token>" \
  -H "Content-Type: application/json" \
  -d '{"product": {"title": "Mélange de betteraves"}}'
```

Machine translation runs through Fluid AI, which has no published API reference yet. Use the CLI's `auto` command for it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.