diff --git a/locales/loader.js b/locales/loader.js index e289830a..4159451e 100644 --- a/locales/loader.js +++ b/locales/loader.js @@ -3,6 +3,7 @@ export default async (context, locale) => { if (process.server) { return context.$axios.$get(`locale/${locale}`) } else { + // cannot use $axios here as plugins have not yet been loaded return fetch(`${window.location.origin}/api/locale/${locale}`).then(ret => ret.json()) } } catch (e) {