nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.71k stars 478 forks source link

How to add langs/locales list in nuxtjs-i18n configuration dynamically. #2795

Closed seetpalsingh closed 7 months ago

seetpalsingh commented 7 months ago

Discussed in https://github.com/nuxt-modules/i18n/discussions/2794

Originally posted by **seetpalsingh** February 15, 2024 Hi Can someone plz guide me , how i can update/add list of locales in i18n configuration. In nuxt.config.js i don't have list of langs. but on SSR I get list of locals/langs from strapi, that i want to add in i18 lang options list. How i can do this.
BobbieGoede commented 7 months ago

It's currently not possible to change the configured locales at runtime, closing this as it is a duplicate of https://github.com/nuxt-modules/i18n/issues/2289.