Set default locale using runtimeConfig #2057
Replies: 3 comments
-
I've just converted to github discussion. Please give us more your explain with actually use-case situation. |
Beta Was this translation helpful? Give feedback.
-
We have a project that is deployed to 7 different domains that is available in 7 languages, each website needs to have a different default locale, currently we set which domain is being deployed via environment variables, this allows use to deploy the same project to all domains without rebuilding the project by passing in different environment variables. My current understanding is the only way to set the default language would be at build time using environment variables, is this the recommended approach? |
Beta Was this translation helpful? Give feedback.
-
I have a need for a dynamic defaultLocale. My office is a the UN Convention on Biological Diversity. Our project nuxtjs 3 frontend for up to 196 drupal back ends (all countries that are parties to our convention). I did not want to build a separate front end for each but one that serves them all. My only problem is the dynamic defaultLocale. We already started dev but this is a blocker. Not sure what the resolution will be yet. PR here or ... separate builds. |
Beta Was this translation helpful? Give feedback.
-
Describe the feature
I need to be able to set the defaultLocale using environment variables that will change at run time, would it be possible to add this to the runtimeConfig?
Additional information
Final checks
Beta Was this translation helpful? Give feedback.
All reactions