From 87dd1791225057328307ba33fb24d1bb8c3c6f0a Mon Sep 17 00:00:00 2001 From: lesion Date: Tue, 7 Feb 2023 17:44:44 +0100 Subject: [PATCH] minor --- locales/loader.js | 1 + 1 file changed, 1 insertion(+) 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) {