V
V
Valeriu Vodnicear2019-04-03 22:47:42
Internationalization and localization
Valeriu Vodnicear, 2019-04-03 22:47:42

Why is nuxt slow because of nuxt-i18n?

There is an application with support for 92 languages.
I'm using nuxt-i18n and it generates routes for every page in all languages. Because of this, the application takes a very long time to load.
If you remove the languages, leave only 2 - for example, then everything flies.
Opened an issue .
Someone solved such a problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Medvedev, 2021-05-19
@vodnicear

prop " no-prefetch " might help

<NuxtLink to="/about" no-prefetch>About page not prefetched</NuxtLink>

It is also possible to load languages ​​into the database, and load the required one by clicking, and in the application itself, paste the text from there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question