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

@@ -0,0 +1,11 @@
export function useLanguage() {
const { setLocale } = useI18n()
async function changeLocale(newLocale: string) {
await setLocale(newLocale as 'en' | 'fr' | 'es')
}
return {
changeLocale,
}
}