> For the complete documentation index, see [llms.txt](https://legacydocs.nexudus.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacydocs.nexudus.com/platform/settings/website/adding-and-editing-language-tokens.md).

# Adding and editing language tokens

You can add and edit the language you set for your website.

You can edit a language by clicking **Language details** in the **Languages** tab of the website settings.

![Editing a language](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LiSc2Ou_7Fp8NnWuZrT%2F-LiShvt4RtJ_vsEm7wWH%2Fsettings_laguage_tokens.png?alt=media\&token=9bc7f31f-c10f-460c-bc43-4c5faf88a0a9)

| Number | Description                                                           |
| ------ | --------------------------------------------------------------------- |
| 1      | Click **Settings**, then **Website**                                  |
| 2      | Click the **Languages** tab                                           |
| 3      | Select the language you wish to view, then click **Language details** |

### **To edit a language**

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-Li8CzI_wW9MFOVR8udd%2F-Li8D5GrhOIcbhMDzQw8%2Fhamburguer.svg?alt=media&amp;token=26002cf1-c214-48d7-87a2-3c4f5cd394f4" alt="" data-size="line"> .
2. In the side menu, click [**Settings**](https://platform.nexudus.com/settings).
3. In the **Features** section, click **Website**.
4. From the list of tabs, click **Languages**.
5. From the drop-down list, select a language to edit.
6. Click **Language details**.
7. Edit any of the available options. See the table below to learn about the options.
8. Click **Save changes**.

| Language detail | Description                                                                 |
| --------------- | --------------------------------------------------------------------------- |
| **Name**        | The name of the language.                                                   |
| **Code**        | A unique code used to identify the language.                                |
| **Location**    | If you manage more than one space, select the space that uses the language. |
| **Active**      | Set to **YES** if you want the language to be available on your website.    |

### Working with tokens

To view the tokens, select a language from the drop-down list in the **Languages** tab of the website settings. The tokens list displays the language tokens in their source language (**SOURCE TEXT**) and the target language (**TRANSLATED AS**).

#### To edit a token

1. If the side menu is not visible, click<img src="broken://files/-LZnQv0ujZjL-QaAncT0" alt="" data-size="line">.
2. In the side menu, click **Settings**.
3. In the **Features** section, click **Website**.
4. From the list of tabs, click **Languages**.
5. From the drop-down list, select a language for which you want to edit a token.
6. From the token list, select a token to edit.
7. In the **Translated as** textbox, change the default translation of the source text.
8. Click **Save changes**.

#### To delete a token

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-Li8CzI_wW9MFOVR8udd%2F-Li8D5GrhOIcbhMDzQw8%2Fhamburguer.svg?alt=media&amp;token=26002cf1-c214-48d7-87a2-3c4f5cd394f4" alt="" data-size="line"> .
2. In the side menu, click **Settings**.
3. In the **Features** section, click **Website**.
4. From the list of tabs, click **Languages**.
5. From the drop-down list, select a language in which you want to delete.
6. From the token list, click the token you want to delete.
7. Click **Delete**.
8. Click **Yes** to confirm.

Alternatively, watch the animation below to use **More options**<img src="broken://files/-LZoDZ2DSzmI8XzHUHtt" alt="" data-size="line">to delete a token.

![](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LhG_s76eI8RhFjLYLUg%2F-LhGf7BP4fMkA_ZxPfA5%2Ftokens01.png?alt=media\&token=649b8d6f-6719-41ce-ac9d-5a30636229ab)

#### Adding a token to a website template file

Tokens have the following format in the website template files:

![](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LhG_s76eI8RhFjLYLUg%2F-LhGfAOYuH-UtHcIwkzE%2Ftokens02.png?alt=media\&token=9e06e2b2-02ce-4dd1-aa66-38ba8639b887)

| Number | Description                                         |
| ------ | --------------------------------------------------- |
| 1      | Examples of tokens in the template code's HTML code |

Access the website template files by going to the **Templates** tab in the website settings. Select the file that you want to add the new language token to. The token must have the following format:

```
{% T TokenName %}
```

### Adding a new language

To add a new language, you must export the complete list of available tokens in XML format so you can translate it. Once you have added your translations to the file, you can than import it back into the system.

#### To export language tokens

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-Li8CzI_wW9MFOVR8udd%2F-Li8D5GrhOIcbhMDzQw8%2Fhamburguer.svg?alt=media&amp;token=26002cf1-c214-48d7-87a2-3c4f5cd394f4" alt="" data-size="line"> .
2. In the side menu, click [**Settings**](https://platform.nexudus.com/settings).
3. In the **Features** section, click **Website**.
4. From the list of tabs, click **Languages**.
5. From the drop-down list, select a language the tokens of which you want to export.
6. Click **Language Details**.
7. From the **More options** drop-down list, click **Export Tokens**.
8. Click **Continue** to confirm.

{% hint style="success" %}
An XML file list is created, containing all of the values that need translating.
{% endhint %}

#### To edit the translations file

Open or save the file to your computer to translate the language tokens. You have to edit the ***value=""***  field in the XML file for the language that you are translating. All translations for all the languages on your Nexudus account are in this file. You can edit them as required.

![](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LhG_s76eI8RhFjLYLUg%2F-LhGfCeX2q33OQ4XIGPV%2Ftokens03.png?alt=media\&token=468a6977-b389-4f54-a194-1a02d3251e0d)

| Number | Description                                             |
| ------ | ------------------------------------------------------- |
| 1      | The ***value=""*** field in the exported XML token file |

{% hint style="warning" %}
Remember that values between ***{}*** are dynamic fields and should not be edited.
{% endhint %}

When you finish translating the tokens in the XML file, you can import the file to your account.

#### To import the XML language tokens file

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-Li8CzI_wW9MFOVR8udd%2F-Li8D5GrhOIcbhMDzQw8%2Fhamburguer.svg?alt=media&amp;token=26002cf1-c214-48d7-87a2-3c4f5cd394f4" alt="" data-size="line"> .
2. In the side menu, click [**Settings**](https://platform.nexudus.com/settings).
3. In the **Features** section, click **Website**.
4. From the list of tabs, click **Languages**.
5. From the drop-down list, select a language the tokens of which you want to export.
6. Click **Language Details**.
7. From the **More options** drop-down list, click **Import**.
8. Click **Upload file**<img src="broken://files/-LZoDZ4FOn9H0lSn0mjl" alt="" data-size="line">and select your translated XML file.
9. Click **Continue**.
10. In the **Name** and **Code** textboxes, type the details of your new language.
11. Set **Active** to **YES**.
12. Click **Save changes**.

{% hint style="success" %}
The new language is now available in your account. You can review the tokens of your new language from the list in the **Languages** tab.
{% endhint %}
