feat: refactor language handling and improve UI components for better usability

This commit is contained in:
2025-09-03 17:14:11 +02:00
parent 11f475cf6e
commit ae380c8c69
5 changed files with 51 additions and 33 deletions

View File

@@ -1,11 +1,8 @@
<script lang="ts" setup>
import { en, es, fr } from '@nuxt/ui/locale'
const { locale, setLocale, t } = useI18n()
async function changeLocale(newLocale: string) {
await setLocale(newLocale as 'en' | 'fr' | 'es')
}
const { locale, t } = useI18n()
const { changeLocale } = useLanguage()
</script>
<template>