Skip to the content.

LocalizationX Document

Download and import the Example

1. Settings

Navigate to the main menu and select: Window > LocalizationX > Settings

settings_tab

2. Export from Excel Spreadsheets

Navigate to the main menu and select: Window > LocalizationX > Excel Spreadsheets

excel_tab edit_excel_sheets

To manage complex Localizations across multiple Excel files, use this feature. It helps you handle and export all your Excel files with one click:

  1. Add all the Excel files you want to process.
  2. For each Excel file, you have the option to choose which sheets to include or exclude.
  3. Click the Export All button to process.

3. Export from Google Spreadsheets

Prefer using Google Spreadsheets? No problem.

Navigate to the main menu and select: Window > LocalizationX > Google Spreadsheets

3.1. Setup Google Client ID and Client Secret

View instruction here

Copy the Client ID and Client Secret, and paste them into the corresponding settings in the Settings

3.2. Export Google Spreadsheets

google_tab edit_google_sheets

Click on Add Google Spreadsheets, then enter the Google Sheet ID in the popup. Click Download, then select the sheets you want to process.

The Google Sheet ID is in the URL of the Google Sheet, like this:

https://docs.google.com/spreadsheets/d/[GOOGLE_SHEET_ID]/edit?......

4. Rules in Spreadsheet

4.1. IDs

Hero     Building     Pet     Gender[enum]  
HERO_1 1 comment BUILDING_NULL 0 comment PET_NULL 0 comment GENDER_NONE 0
HERO_2 2 comment BUILDING_1 1   PET_1 1   GENDER_MALE 1
HERO_3 3 comment BUILDING_2 2   PET_2 2   GENDER_FEMALE 2
      BUILDING_3 3   PET_3 3   GENDER_HELICOPTER 3
      BUILDING_4 4   PET_4 4      
      BUILDING_5 5   PET_5 5      
      BUILDING_6 6   PET_6 6      
      BUILDING_7 7   PET_7 7      
      BUILDING_8 8            

ID Sheets, named with the suffix IDs are used to compile all IDs into Integer Constants. The design rules are:

| Group | Key | Comment |
| ----- | --- | ------- |

4.2. Localization

idstring relativeId english spanish
message_1   this is english message 1 este es el mensaje en ingles 1
message_2   this is english message 2 este es el mensaje en ingles 2
message_3   this is english message 3 este es el mensaje en ingles 3
       
content 1 this is english message 1 este es el mensaje en ingles 1
content 2 this is english message 2 este es el mensaje en ingles 2
content 3 this is english message 3 este es el mensaje en ingles 3
       
title_1   this is english title 1 este es el titulo 1 en ingles
title_2   this is english title 2 este es el titulo 2 en ingles
title_3   this is english title 3 este es el titulo 3 en ingles
       
whatever_msg   this is a sample message este es un mensaje de muestra
       
hero_name HERO_1 hero name 1 nombre del héroe 1
hero_name HERO_2 hero name 2 nombre del héroe 2
hero_name HERO_3 hero name 3 nombre del héroe 3

Localization Sheets are named with the prefix Localization and follow these rules:

| idString | relativeId | english | spanish | japan | .... |
| -------- | ---------- | ------- | ------- | ----- | ---- |

5. How to integration

Download and import the Example

First, open the Excel file at /Assets/LocalizationX/Example/Example.xlsx. This file has example data to help you understand how to create Localization sheets

Excel File

For the example using Google Sheets, you can view the file here.

5.1. Create folders for exporting files

Create 2 directories to store the files that will be exported:

Create 2 folders:

5.2. Scripting

LocalizationManager.Init();
// Set the language japanese
LocalizationsManager.CurrentLanguage = "jp";
// Register an action when language changed
LocalizationsManager.OnLanguageChanged += OnLanguageChanged;

Combine Localizations

If you want to combine all Localization Sheets, simply deselect the Separate Localization Sheets checkbox in the Settings. Next, delete all generated files and re-export everything.

Then, replace instances of LocalizationExample1 and LocalizationExample2 with Localization. Also, replace component LocalizationExample1Text and LocalizationExample2Text with LocalizationText.

Creating TextMeshPro Fonts for Different Languages

To create TextMeshPro fonts for Japanese, Korean, and Chinese, follow these steps using the respective character set files characters_set_jp, characters_set_ko, and characters_set_cn, which include all characters from the localization sheets:

Fonts to use in this example:

Creating TextMeshPro Fonts:

Create Japanese font

Create Korean font

Create Chinese font

Loading Localization Using the Addressable Assets System

To utilize this feature, follow these steps:

LocalizationX Settings

Localizations Folder

Build Settings