mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-24 09:52:03 +01:00
feat: refactor language handling and improve UI components for better usability
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user