mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-29 01:56:59 +01:00
Add multilingual support with English, Spanish, and French translations; update Nuxt configuration and package dependencies
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
useI18n({ useScope: 'local' })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section>
|
||||
<div class="prose dark:prose-invert mb-4">
|
||||
<i18n-t keypath="location" tag="p">
|
||||
<i18n-t keypath="tool.location" tag="p">
|
||||
<template #location>
|
||||
<strong>Paris, France 🇫🇷</strong>
|
||||
</template>
|
||||
@@ -19,17 +15,3 @@ useI18n({ useScope: 'local' })
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<i18n lang="json">
|
||||
{
|
||||
"en": {
|
||||
"location": "I'm currently based in {location}. See below for more details."
|
||||
},
|
||||
"fr": {
|
||||
"location": "Je suis actuellement basé à {location}. Voir ci-dessous pour plus de détails."
|
||||
},
|
||||
"es": {
|
||||
"location": "Actualmente estoy basado en {location}. Consulta más detalles a continuación."
|
||||
}
|
||||
}
|
||||
</i18n>
|
||||
|
||||
Reference in New Issue
Block a user