mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-02-15 01:02:48 +00:00
fix(webapp): properly switch language on static pages (#9202)
This commit is contained in:
parent
7b3c907cf6
commit
eaac170a60
@ -44,7 +44,9 @@ export default ({ app, req, cookie, store }) => {
|
||||
})
|
||||
if (!app.$i18n.localeExists(localeInStore)) {
|
||||
import(`~/locales/${localeInStore}.json`).then((res) => {
|
||||
app.$i18n.add(localeInStore, res.default)
|
||||
const translation = res.default
|
||||
translation.html = htmlTranslations[localeInStore]
|
||||
app.$i18n.add(localeInStore, translation)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user