diff --git a/src/components/instance/settings/Chatwoot.vue b/src/components/instance/settings/Chatwoot.vue
index edbced9..7447586 100644
--- a/src/components/instance/settings/Chatwoot.vue
+++ b/src/components/instance/settings/Chatwoot.vue
@@ -36,9 +36,9 @@
class="mb-3"
:rules="[
(url) => {
- if (!url) return 'URL é obrigatório';
+ if (!url) return this.$t('required', { field: 'URL' });
if (!url.startsWith('http'))
- return 'URL deve começar com http ou https';
+ return this.$t('httpHttps', { field: 'URL' });
return true;
},
]"
@@ -48,7 +48,7 @@
- Assinar mensagens
-
- Adiciona o nome do atendente na primeira linha da mensagem
-
+ {{ $t("chatwoot.signMsg") }}
+ {{ $t("chatwoot.signMsgHelp") }}
- Reabrir conversa
+ {{ $t("chatwoot.reopenConversation") }}
- Reabre a conversa do cliente quando ele inicia uma nova
- conversa em vez de criar uma nova conversa
+ {{ $t("chatwoot.reopenConversationHelp") }}
@@ -119,16 +121,15 @@
- Iniciar conversas como pendente
+ {{ $t("chatwoot.conversationPending") }}
- Inicia a conversa como pendente ao invés de aberta
+ {{ $t("chatwoot.conversationPendingHelp") }}
@@ -137,11 +138,10 @@
- Criar Caixa de Entrada
-
- Cria automaticamente a caixa de entrada no Chatwoot
-
+ {{ $t("chatwoot.autoCreate") }}
+ {{ $t("chatwoot.autoCreateHelp") }}
diff --git a/src/components/instance/settings/Options.vue b/src/components/instance/settings/Options.vue
index 3b5770f..b2ba6ee 100644
--- a/src/components/instance/settings/Options.vue
+++ b/src/components/instance/settings/Options.vue
@@ -1,8 +1,13 @@
-
+
mdi-cellphone-cog
- Comportamento
+ {{ $t("options.title") }}
@@ -35,7 +40,7 @@
class="flex-grow-1 flex-shrink-0"
v-model="optionsData.msg_call"
:disabled="loading || !optionsData.reject_call"
- label="Mensagem de rejeição"
+ :label="$t('options.msgCall')"
hide-details
style="min-width: 200px"
>
@@ -45,7 +50,7 @@
class="flex-grow-0"
v-model="optionsData.groups_ignore"
:disabled="loading"
- label="Ignorar grupos"
+ :label="$t('options.groupsIgnore')"
hide-details
density="compact"
>
@@ -54,7 +59,7 @@
class="flex-grow-0"
v-model="optionsData.always_online"
:disabled="loading"
- label="Sempre online"
+ :label="$t('options.alwaysOnline')"
hide-details
density="compact"
>
@@ -63,7 +68,7 @@
class="flex-grow-0"
v-model="optionsData.read_messages"
:disabled="loading"
- label="Marcar mensagens como lidas"
+ :label="$t('options.readMessages')"
hide-details
density="compact"
>
@@ -72,7 +77,7 @@
class="flex-grow-0"
v-model="optionsData.read_status"
:disabled="loading"
- label="Marcar status como visto"
+ :label="$t('options.readStatus')"
hide-details
density="compact"
>
@@ -91,7 +96,7 @@
@click="saveOptions"
variant="tonal"
>
- Salvar
+ {{ $t("save") }}
@@ -101,14 +106,13 @@
import instanceController from "@/services/instanceController";
const defaultOptions = () => ({
- reject_call: false,
- msg_call: "",
- groups_ignore: false,
- always_online: false,
- read_messages: false,
- read_status: false,
- })
-
+ reject_call: false,
+ msg_call: "",
+ groups_ignore: false,
+ always_online: false,
+ read_messages: false,
+ read_status: false,
+});
export default {
name: "InstanceOptions",
@@ -154,7 +158,10 @@ export default {
this.instance.instance.instanceName,
this.optionsData
);
- this.defaultOptionsData = Object.assign(defaultOptions(), this.optionsData);
+ this.defaultOptionsData = Object.assign(
+ defaultOptions(),
+ this.optionsData
+ );
} catch (e) {
this.error = e.message?.message || e.message || e;
} finally {
diff --git a/src/components/instance/settings/Rabbitmq.vue b/src/components/instance/settings/Rabbitmq.vue
index 7f31f77..68a1552 100644
--- a/src/components/instance/settings/Rabbitmq.vue
+++ b/src/components/instance/settings/Rabbitmq.vue
@@ -1,6 +1,11 @@
-
+
mdi-rabbit
RabbitMQ
@@ -22,8 +27,7 @@
- O RabbitMQ é utilizado pela API para o enfileiramento das notificações.
- Ele NÃO é utilizado para o envio de mensagens.
+ {{ $t("rabbitmq.info") }}
@@ -31,7 +35,7 @@
:items="rabbitmqEventsType"
v-model="rabbitmqData.events"
:disabled="loading"
- label="Eventos"
+ :label="$t('events')"
hide-details
class="mb-3"
multiple
@@ -44,7 +48,7 @@
- Salvar
-
+ {{ $t("save") }}
+
diff --git a/src/components/instance/settings/Typebot.vue b/src/components/instance/settings/Typebot.vue
index 787613f..aa25194 100644
--- a/src/components/instance/settings/Typebot.vue
+++ b/src/components/instance/settings/Typebot.vue
@@ -36,9 +36,9 @@
class="mb-3"
:rules="[
(url) => {
- if (!url) return 'URL é obrigatório';
+ if (!url) return $t('required', { field: 'URL' });
if (!url.startsWith('http'))
- return 'URL deve começar com http ou https';
+ return $t('httpHttps', { field: 'URL' });
return true;
},
]"
@@ -48,16 +48,17 @@
- Ouvir mensagens enviadas por mim
+ {{ $t("typebot.listeningFromMe") }}
- Envia as mensagens enviadas por você para o fluxo do Typebot
+ {{ $t("typebot.listeningFromMeHelp") }}
@@ -170,7 +177,7 @@
- ver {{ typebotData.sessions.length }} sess{{
- typebotData.sessions.length != 1 ? "ões" : "ão"
- }}
+ {{ $t("typebot.session.btn", { count: typebotData.sessions.length }) }}
@@ -199,7 +204,7 @@
@click="saveTypebot"
variant="tonal"
>
- Salvar
+ {{ $t("save") }}
diff --git a/src/components/instance/settings/Webhook.vue b/src/components/instance/settings/Webhook.vue
index 367420c..e3423ef 100644
--- a/src/components/instance/settings/Webhook.vue
+++ b/src/components/instance/settings/Webhook.vue
@@ -36,9 +36,9 @@
class="mb-3"
:rules="[
(url) => {
- if (!url) return 'URL é obrigatório';
+ if (!url) return this.$t('required', { field: 'URL' });
if (!url.startsWith('http'))
- return 'URL deve começar com http ou https';
+ return this.$t('httpHttps', { field: 'URL' });
return true;
},
]"
@@ -48,7 +48,7 @@
:items="webhookEventsType"
v-model="webhookData.events"
:disabled="loading"
- label="Eventos"
+ :label="$t('events')"
hide-details
class="mb-3"
multiple
@@ -72,11 +72,17 @@
+ >
+
+ {{ $t("webhook.byEvents") }}
+
+ {{ $t("webhook.byEventsHelp") }}
+
+
+
@@ -84,7 +90,7 @@
- Salvar
+ {{ $t("save") }}
@@ -165,7 +171,7 @@ export default {
toggleExpanded() {
if (this.loading) return;
this.expanded = !this.expanded;
- },
+ },
async saveWebhook() {
try {
this.loading = true;
diff --git a/src/components/instance/settings/Websocket.vue b/src/components/instance/settings/Websocket.vue
index a252472..9f00c07 100644
--- a/src/components/instance/settings/Websocket.vue
+++ b/src/components/instance/settings/Websocket.vue
@@ -30,7 +30,7 @@
:items="websocketEventsType"
v-model="websocketData.events"
:disabled="loading"
- label="Eventos"
+ :label="$t('events')"
hide-details
class="mb-3"
multiple
@@ -43,7 +43,7 @@
- Salvar
+ {{ $t("save") }}
diff --git a/src/components/modal/Settings.vue b/src/components/modal/Settings.vue
index b9e5734..cb30d6c 100644
--- a/src/components/modal/Settings.vue
+++ b/src/components/modal/Settings.vue
@@ -98,9 +98,9 @@
@click="save(conect)"
>
- {{
- conect.host.replace(/https?:\/\//, "")
- }}
+
+ {{ conect.host.replace(/https?:\/\//, "") }}
+