fix(webapp): properly switch language on static pages (#9202)

This commit is contained in:
Ulf Gebhardt 2026-02-10 23:05:57 +01:00 committed by GitHub
parent 7b3c907cf6
commit eaac170a60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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