translate chatwoot config

This commit is contained in:
Gabriel Pastori 2023-12-16 17:09:43 -03:00
parent c5c87ec2ea
commit bb36f11c5e
4 changed files with 49 additions and 18 deletions

View File

@ -167,7 +167,7 @@
hide-details hide-details
></v-switch> ></v-switch>
<v-btn variant="text" @click="chatwootConfig" size="small"> <v-btn variant="text" @click="chatwootConfig" size="small">
Como configurar o chatwoot? {{ $t("chatwoot.config.btn") }}
</v-btn> </v-btn>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn <v-btn

View File

@ -1,26 +1,28 @@
<template> <template>
<v-dialog v-model="dialog" max-width="700px" scrollable> <v-dialog v-model="dialog" max-width="700px" scrollable>
<v-card> <v-card>
<v-card-title> <v-card-title>{{ $t("chatwoot.config.title") }}</v-card-title>
Como configurar a caixa de entrada do chatwoot?
</v-card-title>
<v-card-text> <v-card-text>
<p> <p>
<b>Passo 1:</b> Acesse as configurações > Caixa de Entrada e <b>{{ $t("step", { step: 1 }) }}:</b>
"Adicionar Caixa" {{ $t("chatwoot.config.steps.1") }}
</p>
<p class="mt-2">
<b>{{ $t("step", { step: 2 }) }}:</b>
{{ $t("chatwoot.config.steps.2") }}
<v-img src="@/assets/chatwoot/chatwoot_api.png" class="ma-4 elevation-10" />
</p> </p>
<p class="mt-2"><b>Passo 2:</b> Selecione "API" como tipo de caixa</p>
<v-img src="@/assets/chatwoot/chatwoot_api.png" />
<p class="mt-2 mb-1"> <p class="mt-2 mb-1">
<b>Passo 3:</b> Preencha nome da caixa e webhook. Os valores devem ser <b>{{ $t("step", { step: 3 }) }}:</b>
exatamente os seguintes: {{ $t("chatwoot.config.steps.3") }}
</p> </p>
<div class="d-flex flex-wrap gap-2"> <div class="d-flex flex-wrap gap-2">
<v-text-field <v-text-field
v-model="instanceName" v-model="instanceName"
label="Nome" label="Name"
readonly readonly
variant="solo-filled" variant="solo-filled"
hide-details hide-details
@ -48,28 +50,31 @@
<v-img src="@/assets/chatwoot/chatwoot_api_1.png" /> <v-img src="@/assets/chatwoot/chatwoot_api_1.png" />
<!-- Step 4: Add agents to the inbox. --> <!-- Step 4: Add agents to the inbox. -->
<p><b>Passo 4:</b> Adicione os agentes à caixa de entrada.</p> <p>
<b>{{ $t("step", { step: 4 }) }}</b>
{{ $t("chatwoot.config.steps.4") }}
</p>
<v-img src="@/assets/chatwoot/chatwoot_api_2.png" /> <v-img src="@/assets/chatwoot/chatwoot_api_2.png" />
<!-- Step 5: Ready. --> <!-- Step 5: Ready. -->
<p><b>Passo 5:</b> Pronto! Agora você pode receber mensagens.</p> <p>
<b>{{ $t("step", { step: 5 }) }}</b>
{{ $t("chatwoot.config.steps.5") }}
</p>
<v-img src="@/assets/chatwoot/chatwoot_api_3.png" /> <v-img src="@/assets/chatwoot/chatwoot_api_3.png" />
<!-- Add link to chatwoot doc -->
<!-- https://www.chatwoot.com/docs/product/channels/api/create-channel -->
<v-btn <v-btn
size="small"
variant="text" variant="text"
block block
href="https://www.chatwoot.com/docs/product/channels/api/create-channel" href="https://www.chatwoot.com/docs/product/channels/api/create-channel"
target="_blank" target="_blank"
> >
Ver documentação completa {{ $t("chatwoot.config.fullDoc") }}
</v-btn> </v-btn>
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn text @click="dialog = false"> fechar </v-btn> <v-btn text @click="dialog = false"> {{ $t("close") }} </v-btn>
<v-spacer></v-spacer> <v-spacer></v-spacer>
</v-card-actions> </v-card-actions>
</v-card> </v-card>

View File

@ -12,6 +12,7 @@ export default {
disconnect: "Disconnect", disconnect: "Disconnect",
sure: "Sure?", sure: "Sure?",
save: "Save", save: "Save",
step: "Passo {step}",
instance: "Instance | Instances", instance: "Instance | Instances",
search: "Search", search: "Search",
loading: "Loading", loading: "Loading",
@ -80,6 +81,18 @@ export default {
conversationPendingHelp: "Starts the conversation as pending instead of open", conversationPendingHelp: "Starts the conversation as pending instead of open",
autoCreate: "Create Inbox", autoCreate: "Create Inbox",
autoCreateHelp: "Creates the inbox in Chatwoot if it doesn't exist", autoCreateHelp: "Creates the inbox in Chatwoot if it doesn't exist",
config: {
btn: "How to configure Chatwoot?",
title: "How to configure Chatwoot inbox?",
fullDoc: "View full documentation",
steps: {
"1": "Access settings > Inbox and click on \"Add Inbox\"",
"2": "Select \"API\" as the inbox type",
"3": "Fill in the inbox name and webhook. The values should be exactly as follows:",
"4": "Add agents to the inbox.",
"5": "Done! Now you can receive messages.",
}
}
}, },
typebot: { typebot: {
typebot: "Typebot flow name", typebot: "Typebot flow name",

View File

@ -12,6 +12,7 @@ export default {
disconnect: "Desconectar", disconnect: "Desconectar",
sure: "Tem certeza?", sure: "Tem certeza?",
save: "Salvar", save: "Salvar",
step: "Passo {step}",
instance: "Instância | Instâncias", instance: "Instância | Instâncias",
search: "Pesquisar", search: "Pesquisar",
loading: "Carregando", loading: "Carregando",
@ -80,6 +81,18 @@ export default {
conversationPendingHelp: "Inicia a conversa como pendente ao invés de aberta", conversationPendingHelp: "Inicia a conversa como pendente ao invés de aberta",
autoCreate: "Criar Caixa de Entrada", autoCreate: "Criar Caixa de Entrada",
autoCreateHelp: "Cria a caixa de entrada no Chatwoot caso ela não exista", autoCreateHelp: "Cria a caixa de entrada no Chatwoot caso ela não exista",
config: {
btn: "Como configurar o chatwoot?",
title: "Como configurar a caixa de entrada do Chatwoot?",
fullDoc: "Ver documentação completa",
steps: {
"1": "Acesse as configurações > Caixa de Entrada e \"Adicionar Caixa\"",
"2": "Selecione \"API\" como tipo de caixa",
"3": "Preencha nome da caixa e webhook. Os valores devem ser exatamente os seguintes:",
"4": "Adicione os agentes à caixa de entrada.",
"5": "Pronto! Agora você pode receber mensagens.",
}
}
}, },
typebot: { typebot: {
typebot: "Nome do fluxo do Typebot", typebot: "Nome do fluxo do Typebot",