From 6723cd82a962ffeeb2896bb61b58da6852ee6416 Mon Sep 17 00:00:00 2001 From: Florian <52180080+florianjs@users.noreply.github.com> Date: Thu, 8 Oct 2026 15:12:52 +0200 Subject: [PATCH] fix(i18n): default to english and make the language switcher visible - english unless the user picks another language, the browser language is no longer used; the choice is kept in a cookie, also on the server - EN / FR toggle in the header and at the top of the login and register pages Co-Authored-By: Claude Opus 5.5 --- app/components/LanguageSwitcher.vue | 30 +++++++++++++++++------------ app/layouts/default.vue | 8 ++++++-- app/pages/auth/login.vue | 8 ++++---- app/pages/auth/register.vue | 8 ++++---- app/plugins/locale-cookie.ts | 28 +++++++++++++++++++++++++++ nuxt.config.ts | 9 +++------ 6 files changed, 63 insertions(+), 28 deletions(-) create mode 100644 app/plugins/locale-cookie.ts diff --git a/app/components/LanguageSwitcher.vue b/app/components/LanguageSwitcher.vue index 6908b082..5a6364ce 100644 --- a/app/components/LanguageSwitcher.vue +++ b/app/components/LanguageSwitcher.vue @@ -1,17 +1,23 @@