question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lazy-load translations

See original GitHub issue

Lazy-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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:11

github_iconTop GitHub Comments

4reactions
paulgvcommented, Feb 25, 2018

@mahmoudmy apparently, nuxt-i18n’s plugin was missing a simple return… 😅 Just pushed v2.3.4 which should fix your problem 😃

2reactions
mahmoudmycommented, Feb 18, 2018

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!)

Read more comments on GitHub >

github_iconTop 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 &amp; 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found