From 6dbbd1b609d7a54c8f1ed0928fb7c0172bda5de1 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Wed, 3 Sep 2025 19:06:41 +0200 Subject: [PATCH] feat: update locale change handler to toggle between languages dynamically --- app/components/chat/CommandPalette.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/chat/CommandPalette.vue b/app/components/chat/CommandPalette.vue index 3421ee4..5aa743a 100644 --- a/app/components/chat/CommandPalette.vue +++ b/app/components/chat/CommandPalette.vue @@ -160,7 +160,7 @@ const commandPaletteUi = { color="neutral" variant="outline" size="xl" - @click.prevent="changeLocale" + @click.prevent="changeLocale(currentLocale!.code === 'en' ? 'fr' : currentLocale!.code === 'fr' ? 'es' : 'en')" />