# Localization

> For the complete documentation index, see [llms.txt](https://docs.arcweave.com/llms.txt). All pages are also available in one file, [llms-full.txt](https://docs.arcweave.com/llms-full.txt).

Source: https://docs.arcweave.com/project-tools/localization
Section: Project Tools
Description: Translate projects into multiple languages, manage languages and translation status, and import or export translation spreadsheets

Arcscript examples: Arcscript has no delimiters, so never wrap code in `${ }`, `{{ }}`, `<< >>` or similar markers. An `arcscript` code block contains only code: each line is one segment, and a branch condition is a single expression without `if` or `endif`. An `arcweave-html` code block is element or connection label content as Arcweave stores it, the HTML that the REST API and MCP server accept: `<p>` for text, `<p></p>` for an empty line, and each Arcscript segment in its own `<pre><code>` block, with `<` written as `&lt;`. An element passed to `visits()` is written as element mention markup; replace `ELEMENT_ID` with the element ID.

Arcweave includes built-in localization tools to manage translations of your project into multiple languages.

It allows you to:

- Translate your project collaboratively and efficiently.
- Work safely: adding/removing [project items](https://docs.arcweave.com/project-items/overview) is disabled while translating.
- Set [Arcscript segments as translatable](https://docs.arcweave.com/project-tools/localization#translate-arcscript-segments) or non-translatable.
- Let players choose their preferred language in [Play Mode](https://docs.arcweave.com/project-tools/play-mode/using-play-mode#choose-language).
- Select which languages to include when you [export](https://docs.arcweave.com/project-tools/export) the project.

> ℹ️ Localization is available only in [Team workspaces](https://docs.arcweave.com/workspaces/billing-plans#workspace-comparison). In Basic and Pro workspaces, the **Localization** icon in the top menu opens a **Localization** dialog that describes the feature, with **Upgrade to Team** and **Maybe later** buttons.

> ⚠️ A user must have [project editing](https://docs.arcweave.com/workspaces/roles) permissions to translate.

## Main language & translations

Context: Arcweave docs > Project Tools > Localization > Main language & translations

By default, an Arcweave project has only one language, referred to as the project's **Main** language. By default, this is _English,_ but you can [change it to any language](https://docs.arcweave.com/project-tools/localization#set-main-language).

> ⚠️ When working in any language other than its main, the project enters **Translation Mode**. Once in Translation Mode, you cannot add or delete [project items](https://docs.arcweave.com/project-items/overview); you can only translate existing ones.

> ℹ️ To return to Arcweave's default editing mode, you need to [switch back to the project's main language](https://docs.arcweave.com/project-tools/localization#switch-language).

## Open localization

Context: Arcweave docs > Project Tools > Localization > Open localization

To open the localization menu, click the **Localization** icon on the right side of the top menu.

![Arcweave's project environment, with an orange arrow pointing at the Localization icon.](https://docs.arcweave.com/assets/localization-icon.CXcYZQcB.png)

![Arcweave's project environment, with an orange rectangle emphasizing the Localization menu](https://docs.arcweave.com/assets/localization-menu.BAXfGIk9.png)

The drop-down menu shows:

- A list of all languages added to the project
- The project's main language (marked with an orange **Main** tag)
- The currently displayed language (marked with an orange tick)
- The [translation status](https://docs.arcweave.com/project-tools/localization#translation-status) of each translation (marked with the relevant icon)
- The translation progress percentage for each translation
- An option to **Import XLSX** (owners and editors); see [Import localized spreadsheets](https://docs.arcweave.com/project-tools/localization#import-localized-spreadsheets)
- An option to **Manage languages...**

## Manage languages

Context: Arcweave docs > Project Tools > Localization > Manage languages

To add, edit, and remove languages:

1. Open the **Localization** drop-down menu.
2. Select **Manage languages...**
3. Perform any of the following actions.

![Arcweave's project environment, with the modal for managing languages open.](https://docs.arcweave.com/assets/localization-manage.TnLU4PWQ.png)

### Set main language

Context: Arcweave docs > Project Tools > Localization > Manage languages > Set main language

By default, the project language is English. To set another language as the default:

1. Open the **Localization** drop-down menu.
2. Select **Manage languages...**
3. Find the **Main** language; it is the first in the list.
4. Click the **three-dot (•••)** icon on the right and select **Edit**.
5. Update the main language's information:
   - **Language**: e.g. `Spanish`
   - **ISO code**: e.g. `es`
6. Click **Save**.

Editing the main language changes its name and ISO code; the project's existing main-language content stays in the main language. You cannot turn an existing translation into the main language.

### Add language

Context: Arcweave docs > Project Tools > Localization > Manage languages > Add language

To add a new language:

1. Open the **Localization** drop-down.
2. Select **Manage languages...**
3. Click **Add Language**.
4. Enter the new language's information:
   - **Language**: e.g. `Italian`
   - **ISO code**: e.g. `it`
5. Select a source language for the new language's translation in **Translates from**. It defaults to the main language.
6. Click **Save**.

Language names (up to 50 characters) and ISO codes must be unique within the project. ISO codes are 2 to 10 characters long, can contain letters, numbers, hyphens, and underscores, and must start and end with a letter or number. A language cannot translate from a language that, directly or indirectly, translates from it.

> ✅ While translating to a language, the source content is displayed on the side, in the language set in **Translates from**.

### Edit language

Context: Arcweave docs > Project Tools > Localization > Manage languages > Edit language

To edit an existing language:

1. Open the **Localization** drop-down.
2. Select **Manage languages...**
3. Find the language in the list.
4. Click the **three-dot (•••)** icon on the right and select **Edit**.

> ℹ️ You can update the **Language** name, **ISO code**, and **Translates from** fields.

### Delete language

Context: Arcweave docs > Project Tools > Localization > Manage languages > Delete language

To delete a language:

1. Open the **Localization** drop-down.
2. Select **Manage languages...**
3. Find the language in the list.
4. Click the **three-dot (•••)** icon on the right and select **Delete**.
5. Confirm with **Yes, Delete**. This action cannot be undone.

> ⚠️ You cannot delete the [main language](https://docs.arcweave.com/project-tools/localization#set-main-language).

## Switch language

Context: Arcweave docs > Project Tools > Localization > Switch language

To switch the working language:

1. Open the **Localization** drop-down menu.
2. Select the desired language.

The editor will now display content in the selected language.

### Copy a link in the current language

Context: Arcweave docs > Project Tools > Localization > Switch language > Copy a link in the current language

After switching languages, use an item's **Copy link** action to share that item in the selected language. Opening the link selects that language, entering **Translation Mode** for a translation. See [Share an item or board position](https://docs.arcweave.com/project-tools/share#share-an-item-or-board-position) for supported items and access requirements.

In Translation Mode, you can select branches and jumpers and right-click them to copy their links. Moving or deleting them, editing branch logic, and changing jumper targets remain disabled.

## Translation status

Context: Arcweave docs > Project Tools > Localization > Translation status

When working in translation mode, each [board](https://docs.arcweave.com/project-items/boards), [element](https://docs.arcweave.com/project-items/elements), [label](https://docs.arcweave.com/project-items/labels), and [component](https://docs.arcweave.com/project-items/components) has a **translation status** to indicate its progress. This makes it easier to track and manage the state of translations across the project.

The available statuses are:

- **Untranslated** (red)
- **In progress** (yellow)
- **For review** (blue)
- **Final** (green)

> ℹ️ Translation status for elements, labels, and components must be set manually. Translation status for boards is generated automatically, according to the status of the containing elements and labels.

> ℹ️ Only connections with a label in the main language have a translation status. Unlabelled connections don't count toward the status of boards and folders or toward a language's [completion percentage](https://docs.arcweave.com/project-tools/localization#translation-percentage).

> ✅ Translation status is exported as part of [Arcweave's JSON](https://docs.arcweave.com/integrations/json).

### Set element status

Context: Arcweave docs > Project Tools > Localization > Translation status > Set element status

To set the translation status of an element:

1\. Locate the element in the current board.

![Arcweave's project environment, with the context menu of an element in the board being open and displaying the translation status.](https://docs.arcweave.com/assets/localization-set-status-element-1.ewYUaqA-.png)

Alternatively, locate the element in the **Boards** section of the sidebar, as a child of the board it belongs to.

![Arcweave's project environment, with the context menu of an element in the Boards section being open and displaying the translation status.](https://docs.arcweave.com/assets/localization-set-status-element-2.DxtjLv5R.png)

2\. Right-click the element and select **Set status**.

### Set label status

Context: Arcweave docs > Project Tools > Localization > Translation status > Set label status

To set the translation status of a label, right-click the label in the current board and select **Set status**.

Alternatively, in the **Boards** section of the sidebar, expand the board, then expand the element or branch that the connection leaves from. Right-click the labelled connection and select **Set status**. See [Board contents](https://docs.arcweave.com/project-tools/interface/left-sidebar#board-contents).

> ℹ️ Unlabelled connections, branches, jumpers, and notes have no translation status, so they have no **Set status** option.

### Set component status

Context: Arcweave docs > Project Tools > Localization > Translation status > Set component status

![Arcweave's project environment, with the context menu of a component in the Components section being open and displaying the translation status.](https://docs.arcweave.com/assets/localization-set-status-component-1.DN3jtd8m.png)

To set the translation status of a component, right-click the component in the **Components** section of the left sidebar and select **Set status**.

### Translation percentage

Context: Arcweave docs > Project Tools > Localization > Translation status > Translation percentage

Items marked as **Final** count toward the language's completion percentage, shown next to it in the **Localization** menu.

## Translate elements

Context: Arcweave docs > Project Tools > Localization > Translate elements

To translate an element:

1. Open the **Localization** drop-down and switch to the desired language.
2. [Set the translation status](https://docs.arcweave.com/project-tools/localization#set-element-status) of the element you want to translate from _Untranslated_ to _In progress._

![Arcweave's project environment, with the context menu of an element in the board being open and displaying the translation status.](https://docs.arcweave.com/assets/localization-translate-element-1.B2qf0G35.png)

3. Double-click the element you want to translate to start editing. The element's source text, in the language specified in the [Translates from](https://docs.arcweave.com/project-tools/localization#add-language) field, will appear as a reference.

![Arcweave's project environment during element translation.](https://docs.arcweave.com/assets/localization-translate-element-2.r-pT4qiV.png)

> ℹ️ Use the **clipboard icon** in the source text reference to copy and paste the source text into the element you are translating.

![Arcweave's project environment during element translation, with an orange rectangle emphasizing the clipboard icon.](https://docs.arcweave.com/assets/localization-translate-element-3.CImcav0e.png)

4. After translating, press ESC or click outside the element, to exit editing.
5. Once done, set the translation status of the element to _For review_ or _Final,_ depending on your workflow.

![Arcweave's project environment, with the context menu of an element in the board being open and displaying the translation status.](https://docs.arcweave.com/assets/localization-translate-element-4.BNll9H96.png)

## Translate label

Context: Arcweave docs > Project Tools > Localization > Translate label

To translate a label:

1\. Open the **Localization** drop-down and switch to the desired language.

2\. [Set the translation status](https://docs.arcweave.com/project-tools/localization#set-label-status) of the label you want to translate from _Untranslated_ to _In progress._

3\. Double-click the label you want to translate to start editing. The label's source text, in the language specified in the [Translates from](https://docs.arcweave.com/project-tools/localization#add-language) field, will appear as a reference.

4\. After translating, press ESC or click outside the label, to exit editing.

5\. Once done, set the translation status of the label to _For review_ or _Final,_ depending on your workflow.

## Translate component

Context: Arcweave docs > Project Tools > Localization > Translate component

To translate a component:

1\. Open the **Localization** drop-down and switch to the desired language.

2\. In the left sidebar's **Components** section, set the translation status of the component you want to translate from _Untranslated_ to _In progress._

3\. Click the component you want to translate to open it, then edit its name.

4\. After translating, press ESC or click outside the name field, to exit editing.

5\. If you're done, set the translation status of the component to _For review_ or _Final,_ depending on your workflow.

> ⚠️ You can only translate the name of a component, not its attributes or their values.

## Translate Arcscript segments

Context: Arcweave docs > Project Tools > Localization > Translate Arcscript segments

By default, [Arcscript segments](https://docs.arcweave.com/project-items/arcscript#arcscript-segments) in [element](https://docs.arcweave.com/project-items/elements#add-arcscript) and [label content](https://docs.arcweave.com/project-items/labels#arcscript-in-labels) are **non-translatable**. This means that, when translating, Arcscript expressions cannot be modified.

### Why translate Arcscript?

Context: Arcweave docs > Project Tools > Localization > Translate Arcscript segments > Why translate Arcscript?

A common reason for making Arcscript segments translatable is to let string assignments properly follow the current language.

For example, the following code assigns a string value to the variable `flower` and then uses that value in a sentence. It makes sense that the value must follow the language of the translation.

```arcweave-html
<pre><code>flower = "the rose"</code></pre>
<p>You take</p>
<pre><code>show(flower)</code></pre>
<p>and give it to the guard.</p>
```

This will render as "You take the rose and give it to the guard."

```arcweave-html
<pre><code>flower = "الوردة"</code></pre>
<p>تأخذ</p>
<pre><code>show(flower)</code></pre>
<p>.ثم أعطها للحارس</p>
```

And this will render properly in the Arabic language: ".تأخذ الوردة ثم أعطها للحارس"

> ⚠️ You cannot set branch conditions as translatable; only Arcscript in elements and labels.

### Toggle translatable Arcscript

Context: Arcweave docs > Project Tools > Localization > Translate Arcscript segments > Toggle translatable Arcscript

You can mark individual Arcscript segments as **translatable** or **non-translatable**. This setting determines whether a segment can be edited independently per language or only in the main language.

To toggle an Arcscript segment:

1. Switch to your project's [main language](https://docs.arcweave.com/project-tools/localization#main-language-translations), if needed:
   - Open the **Localization** drop-down menu and select the main language.
2. Edit the content containing the Arcscript segment:
   - **In a label**: double-click the label's connection and place the cursor inside the Arcscript segment.
   - **In an element**: double-click the element's content and place the cursor inside the Arcscript segment.
3. In the formatting bar, click **Translatable** (the globe icon) to toggle the setting.
   - **Translatable ON**: the Arcscript segment can be edited separately in each language.
   - **Translatable OFF** (default): the Arcscript segment is editable only in the main language and is locked in all translations.

> ⚠️ You can only toggle translatability while editing the project in its **main language**.

## Localization in Play Mode

Context: Arcweave docs > Project Tools > Localization > Localization in Play Mode

### Set Play Mode language

Context: Arcweave docs > Project Tools > Localization > Localization in Play Mode > Set Play Mode language

To set the story's language in Play Mode use the **Localization** icon in the [Play Mode menu](https://docs.arcweave.com/project-tools/play-mode/using-play-mode#play-mode-menu). This is accessible to anyone who views the project's Play Mode.

![Arcweave Play Mode's interface with an orange arrow pointing at the Localization button.](https://docs.arcweave.com/assets/play-mode-localization.BQ17viup.png)

To change the story's language:

1. Click the Localization icon to open the list of available story languages.
2. Choose the desired language.

### Edit language in Play Mode

Context: Arcweave docs > Project Tools > Localization > Localization in Play Mode > Edit language in Play Mode

[Edits made in Play Mode](https://docs.arcweave.com/project-tools/play-mode/using-play-mode#edit-content-in-play-mode) apply to the language currently selected and are saved automatically to the corresponding translation.

## Export translations

Context: Arcweave docs > Project Tools > Localization > Export translations

Arcweave allows you to control which languages & translations you include in the export. See [Export](https://docs.arcweave.com/project-tools/export) for instructions.

XLSX exports include [Open in Arcweave links](https://docs.arcweave.com/project-tools/export#open-items-from-an-xlsx-export) for viewing items in context. A single-language export's links select that language in Arcweave, entering **Translation Mode** for a translation. An **All languages** export's links leave language selection to the person opening them.

## Import localized spreadsheets

Context: Arcweave docs > Project Tools > Localization > Import localized spreadsheets

Arcweave allows importing **XLSX spreadsheet files** for translating purposes. This facilitates translators who are familiar with and prefer working on spreadsheets.

> ⚠️ Valid spreadsheet files are the [XLSX spreadsheets exported from Arcweave](https://docs.arcweave.com/project-tools/export#export-as-spreadsheet) with the option **All languages** selected. These include the **Languages** sheet and translators must preserve this format.

### Workflow synopsis

Context: Arcweave docs > Project Tools > Localization > Import localized spreadsheets > Workflow synopsis

To establish such a workflow, follow these steps:

1. **Project owner/editor**
   Export spreadsheet and send to the translator.
2. **Translator**
   Translate on the spreadsheet and send back.
3. **Project owner / editor**
   Import the translated spreadsheet.

> ⚠️ Edits in the main language are also reimported.

Below you'll find instructions for each of the above steps.

### Export spreadsheet

Context: Arcweave docs > Project Tools > Localization > Import localized spreadsheets > Export spreadsheet

To export a spreadsheet for your translator:

1. Add the new language to the project.
2. In **Languages to export**, select **All languages**.
3. Export the project as an `.xlsx` spreadsheet file.

Then, forward the exported spreadsheet file to the translator, who will work as described in the following step.

### Translate spreadsheet

Context: Arcweave docs > Project Tools > Localization > Import localized spreadsheets > Translate spreadsheet

Once the translator receives the `.xlsx` spreadsheet file, they can open and edit it in their spreadsheet editor.

> The translator should focus on specific sheets and columns, as described below.

Keep each row's `Id` unchanged. Import updates only items whose IDs still exist in the project; rows with missing or unknown IDs, including deleted items, are ignored. Adding rows does not create project items.

Keep the **Languages** sheet and the column headers unchanged. Arcweave matches languages by ISO code. If the **Languages** sheet lists a language that the project doesn't have, or a different name or **Base Language** for an existing one, the import adds or updates that language.

Blank translation and status cells are skipped during import, leaving the corresponding existing values unchanged. To remove existing translated text, use the [editor steps below](https://docs.arcweave.com/project-tools/localization#clear-translated-text-in-the-editor).

After translating, they must save the spreadsheet file as `.xls` or `.xlsx` and forward the translated spreadsheet file to the Arcweave project owner / editor, who will then reimport it. (See [Import spreadsheet](https://docs.arcweave.com/project-tools/localization#import-spreadsheet) below.)

#### View an item in Arcweave

Context: Arcweave docs > Project Tools > Localization > Import localized spreadsheets > Translate spreadsheet > View an item in Arcweave

To check the story context while translating, click **Open in Arcweave** in the row's **Arcweave Link** column. The translator needs [access to the project's boards](https://docs.arcweave.com/project-tools/share#access) to use these links.

This import workflow uses **All languages** exports, so their links do not select a translation. After opening a link, use the [Localization menu](https://docs.arcweave.com/project-tools/localization#switch-language) to choose the language you are translating. A freshly opened project starts in its main language; navigating within an already open project keeps its current language.

Keep the **Arcweave Link** column as provided and continue entering translations in the columns listed below. The links are for navigation; spreadsheet translations are applied through the import process.

#### Translator access to sheets and columns

Context: Arcweave docs > Project Tools > Localization > Import localized spreadsheets > Translate spreadsheet > Translator access to sheets and columns

The file includes [sheets for all kinds](https://docs.arcweave.com/project-tools/export#xlsx) of project items, but the translator should focus only on the following sheets and columns.

Note that `{languageIsoCode}` stands for the ISO code of a language, e.g. `en` for English.

1. **Elements** sheet:
   - Source `{languageIsoCode}` columns:
      ⚠️ The translator _should only read from these:_
     - `Title - {languageIsoCode}`
     - `Content - {languageIsoCode}`
   - Translation `{languageIsoCode}` columns:
      ✅ The translator uses these columns to type the translation and set its status:
     - `Title - {languageIsoCode}`
     - `Content - {languageIsoCode}`
     - `Status - {languageIsoCode}` (see [acceptable status values](https://docs.arcweave.com/project-tools/localization#translation-status-acceptable-values) below)
1. **Connections** sheet:
   - Source `{languageIsoCode}` column:
      ⚠️ The translator _should only read from this:_
     - `Label - {languageIsoCode}`
   - Translation `{languageIsoCode}` columns:
      ✅ The translator uses these columns to type the translation and set its status:
     - `Label - {languageIsoCode}`
     - `Status - {languageIsoCode}`
1. **Components**:
   - Source `{languageIsoCode}` column:
      ⚠️ The translator _should only read from this:_
     - `Name - {languageIsoCode}`
   - Translation `{languageIsoCode}` columns:
      ✅ The translator uses these columns to type the translation and set its status:
     - `Name - {languageIsoCode}`
     - `Status - {languageIsoCode}`

#### Translation status acceptable values

Context: Arcweave docs > Project Tools > Localization > Import localized spreadsheets > Translate spreadsheet > Translation status acceptable values

The translator can mark their progress by setting the Status column with any of the following values:

- `untranslated`: Untranslated
- `progress`: In progress
- `review`: For review
- `final`: Final

Enter these values exactly as shown, in lowercase. Any other value makes the import fail.

#### Clear translated text in the editor

Context: Arcweave docs > Project Tools > Localization > Import localized spreadsheets > Translate spreadsheet > Clear translated text in the editor

[Switch to the translation language](https://docs.arcweave.com/project-tools/localization#switch-language), then clear the text in Arcweave:

- **Element titles, element content, and connection labels:** double-click the field, remove the translated text, and click outside the field to save.
- **Component names:** right-click the component in the sidebar's **Components** section, select **Rename**, clear the name, and press **Enter**.

After clearing a translation, the editor may display source text as a placeholder. [Set the translation status](https://docs.arcweave.com/project-tools/localization#translation-status) separately if needed; clearing text does not reset it.

### Import spreadsheet

Context: Arcweave docs > Project Tools > Localization > Import localized spreadsheets > Import spreadsheet

The project owner / editor imports the translated spreadsheet as follows:

1. Open the **Localization** drop-down menu.
2. Select **Import XLSX**.

![Arcweave's project environment. The Localization menu is open and an orange rectangle is emphasizing the Import XLSX option.](https://docs.arcweave.com/assets/localization-import-xlsx.Bl6z-PYd.png)

3. Click **Import from Excel**

![Arcweave's project environment. The Import from Excel modal is open and an orange rectangle is emphasizing the Import from Excel button.](https://docs.arcweave.com/assets/localization-import-2-xlsx.3jSbpgWg.png)

4. Select and upload an `.xls` or `.xlsx` file from your drive.

5. In **Confirm Import**, review the changes, grouped by language and item type, and select the ones you want to import. Only values that differ from the project are listed.

![Arcweave's project environment. The Confirm Import modal is open, where the user can select and confirm the imported content, by checking on checkboxes.](https://docs.arcweave.com/assets/localization-import-xlsx-3-confirm.Cg8ipbkm.png)

6. Click **Import**.

The project will add the translation in its localization system.

If the file cannot be imported, Arcweave shows **Import Failed** with a list of errors, for example a missing **Languages** sheet, a column whose ISO code is not in the **Languages** sheet, or an invalid status value. Fix the file and select it again.

> ⚠️ Edits in the main language are also reimported.
