Lazy-load translations
See original GitHub issueLazy-loading translations seems like an important feature to some of us. An initial implementation is available in version 2.3.0 which is tagged as a pre-release. I’d love to have some feedback from you guys if you’d be willing to give it a try. To get the prerelease:
yarn add nuxt-i18n@2.3.0-0
Have a look at the doc for usage: https://github.com/nuxt-community/nuxt-i18n#lazy-load-translations
Thanks!
https://github.com/nuxt-community/nuxt-i18n/issues/20 https://github.com/nuxt-community/nuxt-i18n/issues/7
<div align="right">This feature request is available on Nuxt.js community (#c42)</div>Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:11
Top Results From Across the Web
Lazy loading translations | Vue I18n
Loading all of your translation files at once is overkill and unnecessary. Lazy loading or asynchronously loading the translation files is ...
Read more >Lazy-load translations - i18n-module
For apps that contain a lot of translated content, it is preferable not to bundle all the messages in the main bundle but...
Read more >CharlesStover/lazy-i18n: Lazy load translations for ... - GitHub
GitHub - CharlesStover/lazy-i18n: Lazy load translations for your React application. ... The translations prop specifies translations for each locale.
Read more >Translations & Lazy-Loading - StackBlitz
I am using [nx](https://nx.dev) in my. company, so that's why I would like. to split translations into modules regardless. if they are lazy-loaded...
Read more >Dynamically import (Lazy loading) translation files in React-Intl ...
Dynamically import (Lazy loading) translation files in React-Intl using Webpack code-splitting. Instead of bundling all the translation file ...
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
@mahmoudmy apparently, nuxt-i18n’s plugin was missing a simple
return
… 😅 Just pushed v2.3.4 which should fix your problem 😃I tried the new release. Lazy loading is OK but after loading server-side-rendered pages, all of the translations disappear and message keys appear in a flick. (In the Page source there are the correct translations but in a half a second they replace with message keys!)