Asset Localization for Unity
  • What is Asset Localization?
  • Getting Started
  • Localization Explorer
  • Localizing Components
  • Language Persistence
  • Import/Export (CSV)
  • Quick Translate
  • Scripting Reference
Powered by GitBook
On this page

Was this helpful?

Language Persistence

PreviousLocalizing ComponentsNextImport/Export (CSV)

Last updated 6 years ago

Was this helpful?

Localization Preferences

If you would like to persist language across the game runs, use LocalizationPrefs component. Attach the component to any game object you want. LocalizationPrefs uses the to keep application language on the device storage. So you can set key from Pref Key field from inspector.

When the user selects a language from e.g. drop-down, LocalizationPrefs detects the language change and saves the selected language to the with key you chosen. Whenever application starts, LocalizationPrefs restores the selected language and sets the application language.You should place LocalizationPrefs game object into the initial scene of your game.

PlayerPrefs
PlayerPrefs
PlayerPrefs
LocalizationPrefs