mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 15:54:03 +01:00
feat: update locale change handler to toggle between languages dynamically
This commit is contained in:
@@ -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')"
|
||||
/>
|
||||
</UFieldGroup>
|
||||
</ClientOnly>
|
||||
|
||||
Reference in New Issue
Block a user