This project made to simplify small mobile/browser games localization. It is simple and lightweight. Tested on Unity 2020.3 (Windows).
- Import TMP_Pro text form package manager.
- Download and import latest unitypackage from Releases.
- Rebuld C# project (it might be rebuild automatically).
In LocalizationManager.cs file add languages you need to enum.
public enum Language
{
None,
ru, en, br, //Add more here
}
Add LocalizeTMP_Text component to your text object and add Locales
Select locale on game start (Required)
LocalizationManager.ChangeLocale(LocalizationManager.Language.en);
Change it anywhere with the same code