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.

How i can multithread prerender my app (Vue + i18n) with N routes and different inject langs ?

See original GitHub issue

Now my config is working but slowly, how can i make it faster ? Mb multithread ?

webpack:

...['az', 'el', 'en', 'fr', 'it', 'kk', 'nl', 'pl', 'ro', 'ru', 'th', 'uk', 'uz'].map((lang) => {
	return new PrerenderSPAPlugin({
	//...
	inject: {
		isPrerenderer: true,
		config: {
			lang
		}
	},
	//...
	})
})

vuex:

lang: window['__PRERENDER_INJECTED'].config.lang || localStorage.getItem('lang') || 'en'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
websharikcommented, Dec 8, 2020

Hey, @valentinoli Not try that yet, but think its will working. Thanks for help 😃

0reactions
valentinolicommented, Dec 8, 2020

Great, hope it works you’re welcome 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue i18n: Building a multi-language app with locale switcher
Vue i18n is a key process needed to localize your Vue apps and websites. Learn how to set up a Vue app with...
Read more >
Step-by-step: How to Create a Vue Multi-Language App with ...
You can enter the vue create [project-name] command to create a new project using the Vue CLI. Note: If you don't have the...
Read more >
The Ultimate Vue Localization Guide | Phrase
In this hands-on guide, we'll use Vue I18n to internationalize a little demo app, covering everything you need to get started with Vue ......
Read more >
The Ultimate Guide to Vue Localization with Vue I18n - Medium
This end-to-end tutorial will give you a deep insight into Vue localization with the extremely popular Vue I18n library for you to take...
Read more >
Implementing i18n in Vue.js Using vue-i18n - DigitalOcean
Here's a short guide on how to implement internationalization (i18n) in your Vue.js apps using the vue-i18n plugin.
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