nuxt / movies

๐Ÿฟ A TMDB client built with Nuxt 3
https://movies.nuxt.space
MIT License
2k stars 284 forks source link

fix(i18n): set `fallbackLocale` for missing translations #71

Closed BobbieGoede closed 3 months ago

BobbieGoede commented 3 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

This should resolve #66, but this PR assumes you want to use English as the fallbackLocale, which means any missing translations in the selected language will render the English translations instead if present.

Configuring the i18n module is a bit confusing, options that are specific to Vue I18n (that do not overlap with Nuxt I18n options) need to be set in a i18n.config.ts file as it also accept non serializable values. This is something we want to change in the next major.