Skip to content

Commit

Permalink
traduction et engagement
Browse files Browse the repository at this point in the history
  • Loading branch information
scenaristeur committed Apr 12, 2024
1 parent 543bf1d commit f4154bf
Show file tree
Hide file tree
Showing 7 changed files with 154 additions and 159 deletions.
19 changes: 17 additions & 2 deletions src/components/ChatBox.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>
<div class="chatbox-container">
<div class="container">
<h1>{{ sexe }} {{ type }} <RouterLink to="/">X</RouterLink>
<h1>
<!-- <RouterLink @click="$router.go(-1)">X</RouterLink> -->
<button @click="$router.back()" style="font-size: 30px">&lt;</button>
{{ titre}}
</h1>
<!--
target {{ target }}
Expand Down Expand Up @@ -44,6 +47,7 @@ export default {
name: 'ChatBox',
data() {
return {
// titre:'',
currentMessage: '',
messages: [],
//server_url: 'http://localhost:5678/v1/chat/completions2', // using scenaristeur/openai2horde
Expand Down Expand Up @@ -108,7 +112,10 @@ export default {
this.messages = [{ role: 'system', content: this.system_prompt },
{ role: 'assistant', content: this.$t('chatbox.bonjour') }
]
console.log(this.messages)
// let titre = this.sexe+"."+this.type+".titre"
console.log( this.messages)
// this.titre = this.$t(titre) //(""+titre)
// this.messages = `SYSTEM:${this.system_prompt}\n`
// this.messages+=`ASSISTANT:Bonjour, demande-moi ce que tu veux...`
Expand Down Expand Up @@ -154,6 +161,14 @@ export default {
},
state() {
return this.$store.state.core.HordeClient.state
},
titre(){
// let titre = this.sexe+"."+this.type+".titre"
// console.log(titre, this.messages)
// let titre = this.sexe+"."+this.type+".titre"
// console.log(typeof(titre))
// console.log(this.$t(this.sexe+"."+this.type+".titre") )
return this.$t(this.sexe+"."+this.type+".titre")
}
}
Expand Down
68 changes: 16 additions & 52 deletions src/components/TheMen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,44 @@
<template #icon>
<DocumentationIcon />
</template>
<template #heading> {{ $t('man.ecouteur.titre') }}
<button @click="chat" sexe="homme" type='ecouteur'>{{ $t('man.ecouteur.action') }}</button>
<template #heading> {{ $t('homme.ecouteur.titre') }}
<button @click="chat" sexe="homme" type='ecouteur'>{{ $t('homme.ecouteur.action') }}</button>
</template>
{{ $t('man.ecouteur.description') }}
{{ $t('homme.ecouteur.description') }}

</WelcomeItem>

<WelcomeItem>
<template #icon>
<ToolingIcon />
</template>
<template #heading> {{ $t('man.drole.titre') }}
<button @click="chat" sexe="homme" type='drole'>{{ $t('man.drole.action') }}</button>
<template #heading> {{ $t('homme.drole.titre') }}
<button @click="chat" sexe="homme" type='drole'>{{ $t('homme.drole.action') }}</button>
</template>

{{ $t('man.drole.description') }}
{{ $t('homme.drole.description') }}

</WelcomeItem>

<WelcomeItem>
<template #icon>
<EcosystemIcon />
</template>
<template #heading> {{ $t('man.fiable.titre') }}
<button @click="chat" sexe="homme" type='fiable'>{{ $t('man.fiable.action') }}</button>
<template #heading> {{ $t('homme.fiable.titre') }}
<button @click="chat" sexe="homme" type='fiable'>{{ $t('homme.fiable.action') }}</button>
</template>
{{ $t('man.fiable.description') }}
{{ $t('homme.fiable.description') }}

</WelcomeItem>

<WelcomeItem>
<template #icon>
<CommunityIcon />
</template>
<template #heading> {{ $t('man.creatif.titre') }}
<button @click="chat" sexe="homme" type='creatif'>{{ $t('man.creatif.action') }}</button>
<template #heading> {{ $t('homme.creatif.titre') }}
<button @click="chat" sexe="homme" type='creatif'>{{ $t('homme.creatif.action') }}</button>
</template>
{{ $t('man.creatif.description') }}
{{ $t('homme.creatif.description') }}

</WelcomeItem>

Expand All @@ -49,46 +49,10 @@
<template #icon>
<CommunityIcon />
</template>
<template #heading> Profil de Gabriel - L'Homme Irrésistible :</template>
<ul>
<li> Charisme Inégalé : Gabriel possède un charisme magnétique qui attire instantanément l'attention, captivant
tous
ceux qui croisent son regard.</li>
<li> Écoute Empathique : Sa capacité à écouter avec empathie crée une connexion profonde, offrant un soutien
inégalé
dans les moments difficiles.
</li>
<li> Humour Contagieux : Son humour contagieux fait de chaque interaction une expérience joyeuse, rendant chaque
instant mémorable.
</li>
<li> Ambition Motivante : Gabriel inspire par son ambition déterminée, encourageant à poursuivre des rêves
audacieux
et à repousser les limites.
</li>
<li>Créativité Épanouissante : Sa créativité apporte une touche d'originalité à chaque aspect de la vie, ouvrant
la
voie à des expériences enrichissantes.</li>
<li>Fiabilité Indéfectible : Gabriel est d'une fiabilité absolue, offrant une stabilité rassurante dans toutes les
circonstances.</li>
<li>Intégrité Inaltérable : Son intégrité inaltérable crée une base solide, établissant des relations basées sur
la
confiance mutuelle.</li>
<li>Passion Engagée : Sa passion pour le bénévolat et l'engagement social démontre une conscience sociale et un
désir d'impact positif.</li>
<li>Sens de l'Aventure Entraînant : Gabriel invite à l'aventure, créant des expériences uniques qui nourrissent
l'esprit et le cœur.</li>
<li>Appréciation du Beau dans Toutes les Formes : Son amour pour l'art, la nature, la littérature et la
technologie
montre une appréciation complète pour la beauté sous toutes ses formes.</li>
<li>Attirance Magnétique : Gabriel incarne l'attirance puissante du premier type de femmes, ajoutant un élément de
séduction irrésistible.</li>
<li>Maîtrise Sensuelle : Il est une bête de sexe, maîtrisant l'art de l'intimité pour créer des expériences
sensuelles inoubliables.</li>


</ul>
<button @click="chat" sexe="homme" type='irresistible'>Discuter avec Gabriel - L'Homme Irrésistible
:</button>
<template #heading> {{ $t('homme.irresistible.titre') }}
<button @click="chat" sexe="homme" type='irresistible'>{{ $t('homme.irresistible.action') }}</button>
</template>
{{ $t('homme.irresistible.description') }}

</WelcomeItem>
</template>
Expand Down
24 changes: 12 additions & 12 deletions src/components/TheWomen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<CommunityIcon />
</template>
<template #heading>
{{ $t('woman.spirituelle.titre') }}
<button @click="chat" sexe="femme" type='spirituelle'>{{ $t('woman.spirituelle.action') }}</button>
{{ $t('femme.spirituelle.titre') }}
<button @click="chat" sexe="femme" type='spirituelle'>{{ $t('femme.spirituelle.action') }}</button>
</template>
{{ $t('woman.spirituelle.description') }}
{{ $t('femme.spirituelle.description') }}

</WelcomeItem>

Expand All @@ -17,10 +17,10 @@
<EcosystemIcon />
</template>
<template #heading>
{{ $t('woman.creative.titre') }}
<button @click="chat" sexe="femme" type='creative'>{{ $t('woman.creative.action') }}</button>
{{ $t('femme.creative.titre') }}
<button @click="chat" sexe="femme" type='creative'>{{ $t('femme.creative.action') }}</button>
</template>
{{ $t('woman.creative.description') }}
{{ $t('femme.creative.description') }}

</WelcomeItem>

Expand All @@ -29,10 +29,10 @@
<ToolingIcon />
</template>
<template #heading>
{{ $t('woman.maternelle.titre') }}
<button @click="chat" sexe="femme" type='maternelle'>{{ $t('woman.maternelle.action') }}</button>
{{ $t('femme.maternelle.titre') }}
<button @click="chat" sexe="femme" type='maternelle'>{{ $t('femme.maternelle.action') }}</button>
</template>
{{ $t('woman.maternelle.description') }}
{{ $t('femme.maternelle.description') }}

</WelcomeItem>

Expand All @@ -41,10 +41,10 @@
<DocumentationIcon />
</template>
<template #heading>
{{ $t('woman.attirante.titre') }}
<button @click="chat" sexe="femme" type='attirante'>{{ $t('woman.attirante.action') }}</button>
{{ $t('femme.attirante.titre') }}
<button @click="chat" sexe="femme" type='attirante'>{{ $t('femme.attirante.action') }}</button>
</template>
{{ $t('woman.attirante.description') }}
{{ $t('femme.attirante.description') }}

</WelcomeItem>
</template>
Expand Down
59 changes: 43 additions & 16 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"equilibre": "Equilibrium",
"home": "Home",
"about": "About",
"A_Man": "A Man",
"A_Woman": "A Woman",
"wouldLikeToTalkTo": "I Would you like to talk to ",
"A_Man": "A man",
"A_Woman": "A woman",
"wouldLikeToTalkTo": "I would you like to talk to ",
"Dans": "In",
"confession_barjo": "Confessions of a Crap Artist",
"wikipedia_link_barjo": "https://en.wikipedia.org/wiki/Confessions_of_a_Crap_Artist",
Expand Down Expand Up @@ -34,26 +34,53 @@
"send": "Send",
"bonjour": "Hello"
},
"woman": {
"femme": {
"spirituelle": {
"titre": "A Woman Sharing Philosophical Beliefs",
"description": "This woman shares the values, beliefs, and worldview of the individual. She offers a deep connection on the philosophical and spiritual plane.",
"action": "Chat with a woman with philosophical beliefs"
"titre": "Graziella is spiritual",
"description": "Graziella shares her values, beliefs and worldview. She offers a deep connection on the philosophical and spiritual level.",
"action": "Chat with Graziella"
},
"creative": {
"titre": "A Creative Woman to Inspire and Grow",
"description": "This woman represents the intellectual and creative aspect of life. She can inspire, encourage personal growth, and nourish the mind by sharing ideas and intellectual experiences.",
"action": "Chat with a creative woman"
"titre": "Séraphine is creative",
"description": "Séraphine embodies the intellectual and creative aspects of life. She inspires, encourages personal growth and nourishes the mind through sharing ideas and experiences.",
"action": "Chat with Séraphine"
},
"maternelle": {
"titre": "A Nurturing and Maternal Woman for Comfort",
"description": "This woman offers emotional support and a sense of security. She can play the role of a mother, providing a refuge against external pressures and difficult moments.",
"action": "Chat with a nurturing and maternal woman"
"titre": "Nathalie is a maternal woman",
"description": "Nathalie offers emotional support and a sense of security. She can play the role of a mother, providing a refuge against external pressures and difficult moments.",
"action": "Chat with Nathalie"
},
"attirante": {
"titre": "An Attractive Woman for Sex",
"description": "This woman represents the physical and sexual dimension of life. She can satisfy the needs of desire and passion, providing a carnal connection that is important to many people.",
"action": "Chat with an attractive woman"
"titre": "Emma is attractive and seductive",
"description": "Emma represents the physical and sexual aspects of life. She can satisfy sexual desires and passion, offering a connection on the sensual level.",
"action": "Chat with Emma"
}
},
"homme": {
"ecouteur": {
"titre": "Jonathan is an empathic listener",
"description": "Jonathan embodies sincere empathy and attentive listening, offering unconditional support. He provides emotional stability and creates an environment conducive to personal growth.",
"action": "Chat with Jonathan"
},
"drole": {
"titre": "Marco is funny and light-hearted",
"description": "Marco brings joy to every day with his contagious humor, even in difficult situations. He invites adventure, creating memorable experiences and pushing boundaries beyond the mundane.",
"action": "Chat with Marco"
},
"fiable": {
"titre": "Alex is respectful and dependable",
"description": "Alex embodies kindness, establishing relationships based on mutual respect and transparent communication. His altruistic spirit inspires admiration, showing a committed and involved member of society.",
"action": "Chat with Alex"
},
"creatif": {
"titre": "Nicolas is creative and intellectually stimulating",
"description": "Nicolas, with his intellectually stimulating conversations, shares a passion for deep discussions and an insatiable desire for personal and intellectual growth. Ambitious and motivated in both personal and professional aspirations, he expresses a fluid creativity, bringing an artistic touch to every aspect of life.",
"action": "Chat with Nicolas"
},
"irresistible": {
"titre": "Gabriel is irresistible and charming",
"description": "Gabriel has a magnetic charm that captures the attention of everyone he meets. He incarnaes the powerful attraction, adding an irresistible element to his personality. He is a master of intimacy, creating experiences that are both sensual and memorable.",
"action": "Chat with Gabriel"
}
}
}
10 changes: 5 additions & 5 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"send": "Envoyer",
"bonjour": "Bonjour"
},
"woman": {
"femme": {
"spirituelle": {
"titre": "Graziella est spirituelle",
"description": "Graziella partage ses valeurs, ses croyances et sa vision du monde. Elle offre une connexion profonde sur le plan philosophique et spirituel.",
Expand All @@ -56,7 +56,7 @@
"action": "Discuter avec Emma"
}
},
"man": {
"homme": {
"ecouteur": {
"titre": "Jonathan est un écouteur empathique",
"description": "Jonathan incarne une empathie sincère et une écoute attentive, offrant un soutien inconditionnel. Il apporte une stabilité émotionnelle rassurante, créant un environnement propice à l'épanouissement.",
Expand All @@ -78,9 +78,9 @@
"action": "Discuter avec Nicolas"
},
"irresistible": {
"titre": "Une Femme Attirante pour le sexe",
"description": "Cette femme représente la dimension physique et sexuelle de la vie. Elle peut satisfaire les besoins de désir et de passion, offrant une connexion charnelle qui est importante pour de nombreuses personnes.",
"action": "Discuter avec une femme attirante"
"titre": "Gabriel est irrésistible et attirant",
"description": "Gabriel possède un charisme magnétique qui attire instantanément l'attention, captivant tous ceux qui croisent son regard. Il incarne l'attirance puissante, ajoutant un élément de séduction irrésistible. Il est une bête de sexe, maîtrisant l'art de l'intimité pour créer des expériences sensuelles inoubliables.",
"action": "Discuter avec Gabriel"
}
}
}
Loading

0 comments on commit f4154bf

Please sign in to comment.