From 0ab9100c46b27fae450ba84b1e0c92c7dc9a8bc2 Mon Sep 17 00:00:00 2001 From: "Michael H." Date: Fri, 28 Aug 2026 16:30:32 +0200 Subject: [PATCH] Revert "fix: i18n nuxt context error" This reverts commit a1b73d089e06c1788b42a095d9cf69460b2b73d9. --- apps/frontend/src/plugins/i18n.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/frontend/src/plugins/i18n.ts b/apps/frontend/src/plugins/i18n.ts index a0c4874bd9..e6e8fa0b0e 100644 --- a/apps/frontend/src/plugins/i18n.ts +++ b/apps/frontend/src/plugins/i18n.ts @@ -201,10 +201,7 @@ export default defineNuxtPlugin({ locale.value = newLocale if (persist) { - // Awaiting loadLocale above drops the Nuxt context on the server, where useCookie needs it - nuxtApp.runWithContext(() => { - useCookie('locale', { maxAge: 31536000, path: '/' }).value = newLocale - }) + useCookie('locale', { maxAge: 31536000, path: '/' }).value = newLocale } }