---
title: "LocaleList"
description: "Defines a list of [Locale] objects."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class LocaleList(val localeList: List<Locale>) : Collection<Locale>
```


Defines a list of `Locale` objects.


## Secondary Constructors

```kotlin
constructor(
    languageTags: String
) : this(languageTags.split(",").fastMap { it.trim() }.fastMap { Locale(it) })
```


Create a `LocaleList` object from comma separated language tags.

#### Parameters

| | |
| --- | --- |
| languageTags | A comma separated `IETF BCP47`(https://tools.ietf.org/html/bcp47) compliant language tag. |



```kotlin
constructor(vararg locales: Locale) : this(locales.toList())
```


Creates a `LocaleList` object from a list of `Locale`s.


## Functions

```kotlin
operator fun get(i: Int) = localeList[i]
```

## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Empty = LocaleList(listOf())
```


An empty instance of `LocaleList`. Usually used to reference a lack of explicit `Locale`
configuration.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val current: LocaleList
```


Returns Locale object which represents current locale





