# Language Persistence

### &#x20;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 [PlayerPrefs](https://docs.unity3d.com/ScriptReference/PlayerPrefs.html) to keep application language on the device storage. So you can set [PlayerPrefs](https://docs.unity3d.com/ScriptReference/PlayerPrefs.html) key from **Pref Key** field from inspector.

![LocalizationPrefs](https://1961901978-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LRhqW6j6mRgZoErSCt2%2F-LRxse1u0jgJLrhbDMNB%2F-LRxu8aJxkoNLrnoETKS%2FScreen%20Shot%202018-11-23%20at%2003.11.08.png?alt=media\&token=2780d984-c73d-484f-b04d-e953d60010eb)

When the user selects a language from e.g. drop-down, **LocalizationPrefs** detects the language change and saves the selected language to the [PlayerPrefs](https://docs.unity3d.com/ScriptReference/PlayerPrefs.html) 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.
