This commit is contained in:
lesion 2023-02-07 17:44:44 +01:00
parent 98f6b9618c
commit 87dd179122
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -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) {