# Locale

Configure locale behavior and override the default locale that Airship uses.

Airship uses the [Locale](https://www.airship.com/docs/reference/glossary/#locale) for various SDK operations. By default, the SDK automatically uses the device's locale settings, but you can configure it to use the user's preferred language or override it programmatically.

## Overriding the locale

You can override the locale programmatically at runtime, which takes precedence over the device's locale settings.


#### Kotlin


```kotlin
Airship.localeManager.setLocaleOverride(Locale.GERMANY)
```



#### Java


```java
Airship.getLocaleManager().setLocaleOverride(new Locale("de"));
```




## Clearing the locale override

To remove a locale override and return to using the device's locale settings:


#### Kotlin


```kotlin
Airship.localeManager.setLocaleOverride(null)
```



#### Java


```java
Airship.getLocaleManager().setLocaleOverride(null);
```




## Getting the current locale

To retrieve the locale that Airship is currently using:


#### Kotlin


```kotlin
val airshipLocale = Airship.localeManager.locale
```



#### Java


```java
Locale airshipLocale = Airship.getLocaleManager().getLocale();
```




