Skip to content

Installation and configuration

Rodion Lodza edited this page Oct 26, 2020 · 6 revisions

How to install?

Download SimpleLocalization.unitypackage and using UnityPackageManager.

Configuration

After importing the plugin into your project, you need to configure the plugin. To do this, open the editor window Tools\SimpleLocalizator. Editor window has four tabs: Settings, Loading, Parsing, Testing.

0

Settings tab

In the settings tab, you need:

  • Set links to Google Docs with translations (documents must be shared).
  • Configure the timeout for downloading files with translations (5 seconds is good).
  • Configure the type of translation Downloading type in the game. You can read more about this on this page.
  • Configure the type of translation Preprocess Build Downloading Type (preprocess). You can read more about this on this page.

Don't forget to save all settings. The settings are saved in the LocalizatorSettings.json file in the resources folder.

1

Loading tab

In loading tab you can download translations (development or release sheet) manually.

Important! If you are using Downloading type as Manual In Editor you need download the translations before using the localizator.

2

Initialization

It is necessary to initialize the localizer at the beginning of the game by calling Localizator.Initialize() (loading scenes are best place to do it). For example:

public class LoadingSceneController : MonoBehaviour
{
    private void Start()
    {
        Localizator.Initialize();
    }
}
Clone this wiki locally