[android-components](../index.md) / [mozilla.components.support.ktx.android.content.res](index.md) / [locale](./locale.md)

# locale

`val <ERROR CLASS>.locale: `[`Locale`](http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/content/res/Resources.kt#L20)

Returns the primary locale according to the user's preference.

