Home

Issue: 68

Prefetch plugin data

[issue link]

I created my custom translation plugin in which I extend Vue.

// Trans class here...

const translations = {}; // Need to fetch this json obj from server here

Vue.prototype._ = (key, params = {}) => {
  return trans.get(key, params);
};

How can I prefetch it so Vue can use it?
Thanks!

This question is available on Nuxt.js community (#c52)