Lazy loading for locales list
See original GitHub issueWhat problem does this feature solve?
In some cases, there’s a need for a dynamic locales list (i.e. localizations created by editor on CMS). Currently, locales
only allows a static array.
What does the proposed changes look like?
To allow dynamic locales listing, locales
should allow functions as well, including those returning a Promise
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:12
Top Results From Across the Web
Lazy loading for locales list · Issue #256 · nuxt-modules/i18n
In some cases, there's a need for a dynamic locales list (i.e. localizations created by editor on CMS). Currently, locales only allows a...
Read more >How to Load i18n Locales Asynchronously in Vue 3 + Vite
Learn how to load Vue I18n locales lazily in your multi-language Vue 3 + Vite ... Then navigate to the project root directory,...
Read more >Lazy load locales for nuxt-i18n - vue.js - Stack Overflow
The solution was simple. Nuxt allows you to export an async function as options so I can get the data and next assign...
Read more >Lazy loading translations | Vue I18n
Lazy loading or asynchronously loading the translation files is really easy when using Webpack. The lang folder is where all of our translation ......
Read more >Lazy Load and Encapsulate i18n Files in Angular with Transloco
In order to load the feature's translations, we can define the TRANSLOCO_SCOPE provider and pass an inline loader that leverages Webpack's import function...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
found a solution
nuxt.config.js defaults is just a normal nuxt config obj
//e i forgot that every languages needs a file which returns content or a promise 😕
@cannap Thank you very mutch to share your information about this topic and also your answer. Really i think this is my answer too, But i don’t know where can i use this in my code, i mean which part of my code i have to put it?