# Localization

## Localization setup

Open the **Database Window** from <mark style="color:blue;">Tools ► Cutscene System ► Cutscene Database</mark> and select the <mark style="color:blue;">Settings Tab</mark>. From here you can find the languages list to which you can add all the languages you want in your game.

<div align="left"><figure><img src="https://3007250873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP9FEBK4VU4ZymTQrhNzz%2Fuploads%2FywxAyZOHjANFUZZhRMgI%2FScreenshot%202023-03-22%20114754.png?alt=media&#x26;token=9010e03c-88fe-4121-8c57-7781ea699897" alt=""><figcaption></figcaption></figure></div>

Once you add a language to the list, a text, and an audio field will appear in the dialogue node inspector as shown in the image below.

<div align="left"><figure><img src="https://3007250873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP9FEBK4VU4ZymTQrhNzz%2Fuploads%2FibF6suPIhTt4r8ue4Zhl%2FScreenshot%202023-03-22%20122355.png?alt=media&#x26;token=e3b6d7da-3a32-4a81-8590-68bda51d4ca0" alt=""><figcaption></figcaption></figure></div>

### Localization Window

<mark style="color:blue;">Localization window</mark> can be used to edit all the dialogues from one place. The window will list the text and audio of all the dialogue and choice nodes in the current scene. This is useful to review all your dialogues and add different language text for each dialogue from one place without going through the nodes one by one.

<div align="left"><figure><img src="https://3007250873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP9FEBK4VU4ZymTQrhNzz%2Fuploads%2FjdoY3giIg2intI0cSB2H%2FScreenshot%202023-03-22%20120520.png?alt=media&#x26;token=b0d7ea2c-622b-46c7-a63e-ee4299ea0981" alt=""><figcaption></figcaption></figure></div>

### Localization using CSV

Apart from editing the dialogues from the Localization Window, you can also export the dialogues as CSV files and edit them using tools like Excel and then import them back into your project. This is really useful if you want to outsource the localization work.

To export the dialogues as a CSV, click on the **Export All** button.&#x20;

TIP: Be sure to fill in the default text for all dialogues before you export so that you'll what dialogue you're editing from the CSV.

Each CSV file includes texts and audio from all the dialogue and choice nodes in a single scene. So you need to export a CSV file for each scene that includes a cutscene. The CSV format is shown below.

**Exported data**

<figure><img src="https://3007250873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP9FEBK4VU4ZymTQrhNzz%2Fuploads%2Fw3bbOWcdVTQm5eTTKZqo%2FScreenshot%202023-03-22%20132657.png?alt=media&#x26;token=30aacfef-6594-4824-a3c5-a1bef4e0281c" alt=""><figcaption></figcaption></figure>

You can edit both texts and audio filename from the CSV file. But keep in mind that, you should add your all audio clips to our Audios<mark style="color:blue;">( Assets ► Non-Linear Dialogue & Cutscene System ► Resources ► Audios )</mark> folder before importing the CSV. If you don't add it, we won't be able to update the audio when you import the CSV.

When you're done editing, you can click the **Import All** option to import the CSV into Unity.

<div align="left"><figure><img src="https://3007250873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP9FEBK4VU4ZymTQrhNzz%2Fuploads%2Ft8IX6IVVxUPChRmzohzm%2FScreenshot%202023-03-22%20152207.png?alt=media&#x26;token=c41b3f39-eeed-4995-aa70-4378bed8dad2" alt=""><figcaption></figcaption></figure></div>

### Change Cutscene Language

You can use **LanguageManager.ChangeLanguage()** for changing your current cutscene language

<div align="left"><figure><img src="https://3007250873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP9FEBK4VU4ZymTQrhNzz%2Fuploads%2FtO48Lh4WMMIT12EfwwOg%2FScreenshot%202023-04-06%20150514.png?alt=media&#x26;token=fcfe64e4-02a2-40d5-951b-122e92c2a4cd" alt=""><figcaption></figcaption></figure></div>
