From 543bf1d5fa9db9cf98cd5715dfcf34477342d215 Mon Sep 17 00:00:00 2001 From: scenaristeur Date: Fri, 12 Apr 2024 19:50:53 +0200 Subject: [PATCH] translate 2 --- src/components/ChatBox.vue | 2 +- src/components/TheMen.vue | 95 ++++++++++++----------------------- src/components/TheWomen.vue | 43 +++++++++------- src/locales/en.json | 18 ++++++- src/locales/fr.json | 51 +++++++++++++++++-- src/prompts/system_prompts.js | 66 +++++++++++++++++++++--- 6 files changed, 179 insertions(+), 96 deletions(-) diff --git a/src/components/ChatBox.vue b/src/components/ChatBox.vue index 4054edd..78f6881 100644 --- a/src/components/ChatBox.vue +++ b/src/components/ChatBox.vue @@ -106,7 +106,7 @@ export default { this.$router.push('/') } else { this.messages = [{ role: 'system', content: this.system_prompt }, - { role: 'assistant', content: 'Bonjour.' } + { role: 'assistant', content: this.$t('chatbox.bonjour') } ] console.log(this.messages) diff --git a/src/components/TheMen.vue b/src/components/TheMen.vue index b993dc1..acda73d 100644 --- a/src/components/TheMen.vue +++ b/src/components/TheMen.vue @@ -1,61 +1,35 @@ - -