Add multilingual support with English, Spanish, and French translations; update Nuxt configuration and package dependencies

This commit is contained in:
2025-09-03 12:09:22 +02:00
parent 6641846a8b
commit 42e14ee94a
21 changed files with 781 additions and 840 deletions

View File

@@ -7,8 +7,6 @@ useSeoMeta({
})
const { messages } = useChatStore()
const { t } = useI18n({ useScope: 'local' })
const parents = useTemplateRef('parents')
const { height } = useElementBounding(parents)
@@ -27,7 +25,7 @@ watch(
<div ref="parents" class="space-y-8 my-32">
<ChatMessageContainer
:message="{
content: t('init'),
content: 'main.init',
id: 0,
sender: ChatSender.ARTHUR,
state: ChatState.SENT,
@@ -37,7 +35,7 @@ watch(
<ChatMessageContainer
:message="{
id: 0,
content: t('question'),
content: 'main.question',
sender: ChatSender.USER,
state: ChatState.SENT,
type: ChatType.INIT,
@@ -45,7 +43,7 @@ watch(
/>
<ChatMessageContainer
:message="{
content: t('about'),
content: 'main.about',
id: 0,
sender: ChatSender.ARTHUR,
state: ChatState.SENT,
@@ -60,24 +58,3 @@ watch(
</div>
</main>
</template>
<i18n lang="json">
{
"en": {
"init": "Hey, welcome to ArtChat. I'm an AI assistant that knows everything about Arthur Danjou. Ask me anything and I'll answer as if I were him!",
"question": "Awesome! Tell me a bit more about you.",
"about": "I'm a student in Mathematics and Statistics at Université Paris-Dauphine in France. With a deep understanding of emerging technologies, I'm at the heart of a rapidly expanding field. My background in mathematics gives me an edge in understanding the concepts and theories behind these technologies and designing them effectively."
},
"fr": {
"init": "Salut, bienvenue sur ArtChat. Je suis un assistant IA connaissant tout sur Arthur Danjou. Pose moi des questions et j'y répondrai comme si j'étais lui.",
"question": "Génial ! Parle moi un peu plus de toi.",
"about": "Je suis étudiant en Mathématiques et en Statistiques à l'Université Paris-Dauphine en France. Avec une compréhension approfondie des technologies émergentes, je suis au cœur d'un domaine en pleine expansion. Mon parcours en mathématiques me donne un avantage pour comprendre les concepts et les théories derrière ces technologies et pour les concevoir efficacement."
},
"es": {
"init": "Hola, bienvenido a ArtChat. Soy un asistente de IA que sabe todo sobre Arthur Danjou. Hazme preguntas y responderé como si fuera él.",
"question": "¡Genial! Háblame un poco más sobre ti.",
"about": "Soy estudiante de Matemáticas y Estadísticas en la Universidad Paris-Dauphine en Francia. Con una comprensión profunda de las tecnologías emergentes, estoy en el corazón de un campo en rápida expansión. Mi formación en matemáticas me da una ventaja para comprender los conceptos y teorías detrás de estas tecnologías y para diseñarlas de manera efectiva."
}
}
</i18n>