# Translations

Set up translations in one step, see every text of your site by language, edit a translation in place, add or remove a language, choose the default one and make a text of the page translatable.

The Translations pane lists every text of your site by language, next to the canvas. Edit a translation in place, follow what is missing or needs review, and manage the languages your site speaks.

## What you can do

- Set up translations in a site that has none, in one step you can undo.
- See every key of your site with its words in each language, grouped by page.
- Find a text by its key or by its words in any language.
- Show only the texts that are missing, that need review or that Lyna's AI translated.
- Edit a translation in place, with its grammar checked as you type.
- Mark a translation reviewed, copy a key, show a text on the canvas or open its file.
- Add a language, remove one, or choose the default language.
- Make a text of the page translatable in one step.
- Translate the missing texts, or one key, with Lyna's AI once you have seen the price.

## Open the pane

Open the command palette (`Cmd/Ctrl + K`) and choose **Toggle Translations** or **Open Translations**, choose **Open Translations** at the end of the **Canvas language** menu, or choose **All translations** in the **Edit all languages** table of a translated text on the canvas. The pane docks beside the canvas, so the page keeps showing the words you edit. On a phone it opens as a full screen.

## Set up translations

A site whose words are still written in its pages has no translations yet. Open the Translations pane: it shows **Set up translations**.

1. ### Choose the languages

   In **Written in**, pick the language your site is written in: Lyna suggests the one your page declares. In **Languages to add**, pick the others. Each list finds a language by its name or its code.
2. ### Set them up

   Choose **Set up translations**. Lyna adds its translation kit to your project and moves the words of your pages and components into the language's file, in one step you can undo. A sentence with a link or a code span in it stays one text with its link, and words that change with a yes or no value, such as **Open** and **Close** on one button, stay one text too.

The grid then shows every language, the new ones **Missing**: translate them yourself or choose **Translate missing**. A message says how many texts moved and how many stay written in the pages, for **Make translatable** or Lyna. **Ask Lyna instead** hands the request to the chat. A new page you create from the Pages panel then writes its words in the language's file too.

## Read the states

Each text of a language other than the default one has a state:

| State             | What it means                                                                                                   |
| ----------------- | --------------------------------------------------------------------------------------------------------------- |
| **Missing**       | The language has no words for this key. Visitors see the default language's words, which the cell shows dimmed. |
| **Needs review**  | The default language's words changed since this translation was written.                                        |
| **AI translated** | Lyna's AI wrote these words. They stay marked until a person confirms them.                                     |
| Done              | No badge: a person wrote or confirmed the words for today's default text.                                       |

The filter chips under the search (**All**, **Missing**, **Needs review**, **AI translated**) show how many texts each one holds.

## Edit a translation

1. ### Pick a cell

   Click a cell, or move to it with the arrow keys and press `Enter`. The default language's words show above the field.
2. ### Type the words

   The words are checked as you type. A message that breaks the format, drops a value of the default words such as `{name}`, or uses a plural case the language does not have says why under the field, and **Save** stays off until it is fixed.
3. ### Save

   Press `Enter` or choose **Save**. The words are written in the language's file and the page shows them at once, without reloading. `Escape` leaves the words as they were. Each save is one step you can undo.

> [!TIP]
>
> **Messages with values**
>
> A message can hold values and plurals, for example `{count, plural, one {# item} other {# items}}`. Keep every value of the default words in each language, and write the plural cases that language uses.

## Act on a row

The row's **...** menu holds **Show on canvas** (selects the element that shows the text on the page shown), **Open in code**, **Copy key**, **Mark reviewed** for a translation that needs review or that Lyna's AI wrote, and **Translate with AI** for that key.

## Translate with AI

Choose **Translate missing** in the pane's header to translate every text that is missing or needs review in the other languages, or **Translate with AI** in a row's **...** menu for that key alone. Lyna asks in the chat first: its card shows the price in credits before anything is spent. Choose **Translate with AI** to go ahead, or **Leave them as they are** to spend nothing. While Lyna works, a note at the top of the pane says where it stands, and the new words show in the grid as soon as they are written, marked **AI translated** until you review them.

## Manage languages

Choose **Languages** in the pane's header. Each language shows its own name, its code and how much of it is translated, and the default one is marked.

- **Add a language**: search a language by its name or its code and pick it. Lyna adds it to your site's language list and creates its empty file: every text then reads **Missing** in it until you translate it.
- **Set as default**: the default language is the one visitors meet first and the source the others are translated from. Translations keep their states.
- **Remove**: removes the language from the list and deletes its file, after you confirm. Undo puts everything back. The default language cannot be removed.

> [!NOTE]
>
> **Projects set up another way**
>
> These actions change the language list Lyna writes into a project. If your project keeps its languages somewhere else, ask Lyna in the chat to change them.

## Make a text translatable

Select a text written directly in the page, then open the Translations pane. **Make translatable** shows its words and suggests a key from the page and the element, which you can change. Choose **Make translatable**: the text becomes a key of the default language and the other languages read **Missing** until they are translated. A text that mixes words with code is made translatable by asking Lyna.

## Related

- [Canvas](/features/design/canvas): Edit the words of your pages in place.
- [Chat](/features/ai/chat): Ask Lyna to translate your site or set up its languages.
