> For the complete documentation index, see [llms.txt](https://raul202.gitbook.io/vue3-multilang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raul202.gitbook.io/vue3-multilang/guide/getting-current-locale.md).

# Getting current locale

### Example

Default configuration

```javascript
app.use(createMultilang(),{
    locale: "en-UK",
    messages,
})
```

Vue3 component

```html
<template>
  <div>
    <p>{{$lang.options.locale}}</p>
  </div>
</template>
```

Output

```
<template>
  <div>
    <p>en-UK</p>
  </div>
</template>
```
