@hivegpt/hiveai-angular 0.0.375 → 0.0.381
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -528,7 +528,7 @@ getTranslation(key: string) {
|
|
|
528
528
|
const url = `${this.environment.BASE_URL}/bots?bot_id=${this.botId}`;
|
|
529
529
|
return this.http.get(url, { headers }).pipe(
|
|
530
530
|
switchMap((res: any) => {
|
|
531
|
-
this.botName =
|
|
531
|
+
this.botName = res.Name;
|
|
532
532
|
this.botIcon = res.Icon;
|
|
533
533
|
this.botSkills = res?.Skills;
|
|
534
534
|
this.greetingMsg = res.Greeting;
|
|
@@ -536,7 +536,7 @@ getTranslation(key: string) {
|
|
|
536
536
|
this.thumbsDownMessages = res?.NegativeResponses?.length
|
|
537
537
|
? res.NegativeResponses
|
|
538
538
|
: [
|
|
539
|
-
|
|
539
|
+
`We are sorry we've not been able to answer your question.<br/> However, our dedicated support team is happy to help. <span class='feedback-link' style='cursor: pointer; text-decoration: underline; font-weight: 700; color: #17235B;'><a style='color: inherit; text-decoration: none;' id='supportLink88' >Please click here</a></span> and a human agent will assist you as soon as possible`,
|
|
540
540
|
];
|
|
541
541
|
this.quickPrompts = res.QuickPrompts;
|
|
542
542
|
this.cdr.markForCheck();
|
|
@@ -1010,7 +1010,7 @@ getTranslation(key: string) {
|
|
|
1010
1010
|
type: 'ai',
|
|
1011
1011
|
message:
|
|
1012
1012
|
this.thumbsUpMessage ||
|
|
1013
|
-
|
|
1013
|
+
`Great. May I assist you with anything else?`,
|
|
1014
1014
|
time: formatNow(this.timezone),
|
|
1015
1015
|
isFeedbackMsg: true,
|
|
1016
1016
|
});
|
|
@@ -1574,7 +1574,7 @@ getTranslation(key: string) {
|
|
|
1574
1574
|
// Create a copy button for the code block
|
|
1575
1575
|
return `
|
|
1576
1576
|
<div class="code-container">
|
|
1577
|
-
<button id="copy-button" class="copy-button" (click)="copyToClipboard('\`${escapedCode}\`')"
|
|
1577
|
+
<button id="copy-button" class="copy-button" (click)="copyToClipboard('\`${escapedCode}\`')">Copy</button>
|
|
1578
1578
|
<pre class="code_block diff"><code class="language-${language}">${escapedCode}</code></pre>
|
|
1579
1579
|
</div>`;
|
|
1580
1580
|
});
|
|
@@ -35,53 +35,6 @@ export class TranslationService {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
private translationsData: any[] = [
|
|
38
|
-
{
|
|
39
|
-
Key: "Copy",
|
|
40
|
-
DefaultValue: "Copy",
|
|
41
|
-
Translations: {
|
|
42
|
-
en: "Copy",
|
|
43
|
-
fr: "Copier",
|
|
44
|
-
it: "Copia",
|
|
45
|
-
es: "Copiar",
|
|
46
|
-
de: "Kopieren",
|
|
47
|
-
"pt-br": "Copiar",
|
|
48
|
-
ar: "نسخ",
|
|
49
|
-
zh: "复制",
|
|
50
|
-
ru: "Копировать"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
,
|
|
54
|
-
{
|
|
55
|
-
|
|
56
|
-
Key: "May I assist you with anything else",
|
|
57
|
-
DefaultValue: "Great. May I assist you with anything else?",
|
|
58
|
-
Translations: {
|
|
59
|
-
en: "Great. May I assist you with anything else?",
|
|
60
|
-
fr: "Parfait. Puis-je vous aider avec autre chose ?",
|
|
61
|
-
it: "Perfetto. Posso aiutarti con qualcos'altro?",
|
|
62
|
-
es: "Genial. ¿Puedo ayudarte con algo más?",
|
|
63
|
-
de: "Super. Kann ich Ihnen noch bei etwas anderem helfen?",
|
|
64
|
-
"pt-br": "Ótimo. Posso ajudar com mais alguma coisa?",
|
|
65
|
-
ar: "رائع. هل يمكنني مساعدتك في أي شيء آخر؟",
|
|
66
|
-
zh: "太好了。还有什么我可以帮您的吗?",
|
|
67
|
-
ru: "Отлично. Могу ли я помочь вам с чем-то ещё?"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
Key: "We are sorry we've not been able to answer your question",
|
|
72
|
-
DefaultValue: "We are sorry we've not been able to answer your question. However, our dedicated support team is happy to help. Please <a href=\"mailto:support@social27.com\">click here</a> and a human agent will assist you as soon as possible.",
|
|
73
|
-
Translations: {
|
|
74
|
-
en: "We are sorry we've not been able to answer your question. However, our dedicated support team is happy to help. Please <a href=\"mailto:support@social27.com\">click here</a> and a human agent will assist you as soon as possible.",
|
|
75
|
-
fr: "Nous sommes désolés de ne pas avoir pu répondre à votre question. Cependant, notre équipe d'assistance se fera un plaisir de vous aider. Veuillez <a href=\"mailto:support@social27.com\">cliquer ici</a> et un agent humain vous assistera dès que possible.",
|
|
76
|
-
it: "Ci dispiace di non essere riusciti a rispondere alla tua domanda. Tuttavia, il nostro team di supporto dedicato sarà lieto di aiutarti. Ti preghiamo di <a href=\"mailto:support@social27.com\">fare clic qui</a> e un operatore umano ti assisterà al più presto.",
|
|
77
|
-
es: "Lamentamos no haber podido responder a tu pregunta. Sin embargo, nuestro equipo de soporte estará encantado de ayudarte. Por favor, <a href=\"mailto:support@social27.com\">haz clic aquí</a> y un agente humano te asistirá lo antes posible.",
|
|
78
|
-
de: "Es tut uns leid, dass wir Ihre Frage nicht beantworten konnten. Unser engagiertes Support-Team hilft Ihnen jedoch gerne weiter. Bitte <a href=\"mailto:support@social27.com\">klicken Sie hier</a>, und ein menschlicher Mitarbeiter wird Ihnen so bald wie möglich helfen.",
|
|
79
|
-
"pt-br": "Lamentamos não ter conseguido responder à sua pergunta. No entanto, nossa equipe de suporte dedicada ficará feliz em ajudar. Por favor, <a href=\"mailto:support@social27.com\">clique aqui</a> e um agente humano o ajudará o mais rápido possível.",
|
|
80
|
-
ar: "نأسف لعدم تمكننا من الإجابة على سؤالك. ومع ذلك، يسعد فريق الدعم المخصص لدينا بمساعدتك. يرجى <a href=\"mailto:support@social27.com\">النقر هنا</a> وسيساعدك أحد الوكلاء البشريين في أقرب وقت ممكن.",
|
|
81
|
-
zh: "很抱歉我们未能回答您的问题。不过,我们的专属支持团队很乐意为您提供帮助。请<a href=\"mailto:support@social27.com\">点击这里</a>,人工客服将尽快为您提供协助。",
|
|
82
|
-
ru: "К сожалению, мы не смогли ответить на ваш вопрос. Однако наша служба поддержки с радостью вам поможет. Пожалуйста, <a href=\"mailto:support@social27.com\">нажмите здесь</a>, и наш оператор свяжется с вами как можно скорее."
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
38
|
{
|
|
86
39
|
Key: 'Ask anything',
|
|
87
40
|
DefaultValue: 'Ask anything',
|
|
@@ -219,7 +172,21 @@ export class TranslationService {
|
|
|
219
172
|
ru: 'Отправить',
|
|
220
173
|
},
|
|
221
174
|
},
|
|
222
|
-
|
|
175
|
+
{
|
|
176
|
+
Key: 'Call Interface',
|
|
177
|
+
DefaultValue: 'Call Interface',
|
|
178
|
+
Translations: {
|
|
179
|
+
en: 'Call Interface',
|
|
180
|
+
fr: "Interface d'appel",
|
|
181
|
+
it: 'Interfaccia chiamata',
|
|
182
|
+
es: 'Interfaz de llamada',
|
|
183
|
+
de: 'Anrufoberfläche',
|
|
184
|
+
'pt-br': 'Interface de chamada',
|
|
185
|
+
ar: 'واجهة الاتصال',
|
|
186
|
+
zh: '呼叫界面',
|
|
187
|
+
ru: 'Интерфейс звонка',
|
|
188
|
+
},
|
|
189
|
+
},
|
|
223
190
|
{
|
|
224
191
|
Key: 'Call Interface',
|
|
225
192
|
DefaultValue: 'Call Interface',
|