# A2uiLocaleProvider

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/catalog/functions/A2uiLocaleProvider.kt+class:androidx.a2ui.model.catalog.functions.A2uiLocaleProvider) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
fun interface A2uiLocaleProvider
```

<br />

*** ** * ** ***

Resolves the current `https://developer.android.com/reference/java/util/Locale.html`.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiLocaleProvider` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiLocaleProvider#Default()` Default provider using the current system locale. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/java/util/Locale.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/catalog/functions/A2uiLocaleProvider#getLocale()()` Returns the resolved `https://developer.android.com/reference/java/util/Locale.html`. |

## Public companion properties

### Default

```
val Default: A2uiLocaleProvider
```

Default provider using the current system locale.

## Public functions

### getLocale

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
fun getLocale(): Locale
```

Returns the resolved `https://developer.android.com/reference/java/util/Locale.html`.