Runtime dynamic loading of messages
Describe the feature
When loading and fetching messages for external sources, the current advised solution (https://i18n.nuxtjs.org/docs/composables/define-i18n-locale) is during build time, which means for every change in messages we need to run the build/deploy again.
"A function that is the dynamic locale messages loading, that has the following parameters:"
Does this mean that all the messages are fetched only during build, and after that they are lazy loaded?
It would be nice to have a feature, where the messages are cached and aren't loaded during build time.
Would it be possible to implement this?
Additional information
- [x] Would you be willing to help implement this feature?
- [ ] Could this feature be implemented as a module?
Final checks
- [x] Read the contribution guide (The contribution guideline of nuxt-modules/i18n is compliant with Nuxt too).
- [x] Check existing discussions and issues.
If you're using dynamic locale messages and fetching from an external source you don't have to build and redeploy your project when messages change. The messages are loaded/fetched both during build and at runtime (using a very short lived cache).
Are you running into specific issues? If so, could you provide a minimal reproduction? 🙏