-
Notifications
You must be signed in to change notification settings - Fork 4
Installation and configuration
Download SimpleLocalization.unitypackage and using UnityPackageManager.
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.
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.
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.
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();
}
}