> 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/fallback.md).

# Fallback

Summary: Use fallbackLocale: 'lang' to choose which language to use when your preferred language lacks a translation.

### Implicit fallback using locales <a href="#implicit-fallback-using-locales" id="implicit-fallback-using-locales"></a>

If the main language cannot translate something automatically, the default fallback is activated.

#### Example

Configuration

```javascript
import { createApp } from 'vue'
import App from './App.vue'
import createMultilang from "vue3multilang"
const app = createApp(App)
const messages = {
    "en-UK":{
    },
    "ro-RO":{
        welcome:"Bine ati venit!",
    }
}
app.use(createMultilang(),{
    locale: "en-UK",
    fallbackLocale:"ro-RO",
    messages,
})
app.mount('#app')
```

Template

```html
 <p>{{ $t("welcome") }}</p>
```

Output

The main language **`en-EN`** is not welcome and the fallback for **`ro-RO`** is automatically activated.

```html
 <p>Bine ati venit!</p>
```
