🇯🇵Simple Localization

Asset that we use to translate text

We use this package to translate text, but with little tweaks so it fits well to project.

How to setup

  1. Use google sheets (recomended) and export data as csv. Table example Add csv file with translations to Assets\SimpleLocalization\Resources\Localization folder.

  2. a. Use Localized Text and enter key in component to translate it on scene start. b. Use LocalizationManager.Localize(_localizedKey) to get translated string, but keep in mind to subscribe to LocalizationManager.OnLocalizationChanged event to set new translated string if user can change language runtime without game restart.

  3. LocalizationManager.Language property to change language runtime. Use GameLanguagesSO to get info about translated languages.

  4. AppStart auto sets language at BeforeSplashScreenAppear().

Last updated