diff --git a/src/components/instance/message/HasWhatsapp.vue b/src/components/instance/message/HasWhatsapp.vue index 8b9d3e1..294fc88 100644 --- a/src/components/instance/message/HasWhatsapp.vue +++ b/src/components/instance/message/HasWhatsapp.vue @@ -7,7 +7,7 @@ v-ripple > mdi-account-question - Tem Whatsapp? + {{ $t("phoneHasWhatsApp.title") }} {{ - response.exists ? "Whatsapp encontrado" : "Whatsapp não encontrado" + response.exists + ? $t("phoneHasWhatsApp.exists") + : $t("phoneHasWhatsApp.notExists") }} @@ -55,7 +57,7 @@ @click="verifyPhone" variant="tonal" > - Consultar + {{ $t("phoneHasWhatsApp.verify") }} @@ -95,7 +97,7 @@ export default { this.response = false; const phone = this.formatPhone(this.phone); - if (phone.length < 10) throw new Error("Número inválido"); + if (phone.length < 10) throw new Error(this.$t("phoneHasWhatsApp.invalid")); const response = await instanceController.chat.hasWhatsapp( this.instance.instance.instanceName, diff --git a/src/components/instance/message/MyChats.vue b/src/components/instance/message/MyChats.vue index 3d44044..ba352b2 100644 --- a/src/components/instance/message/MyChats.vue +++ b/src/components/instance/message/MyChats.vue @@ -7,7 +7,7 @@ v-ripple > mdi-message - Minhas conversas + {{ $t("chats.title") }} mdi-account-group - Meus Grupos + {{ $t("groups.title") }} mdi-account - Nome e Recado + {{ $t("profile.title") }} - Salvar + {{ $t("save") }} diff --git a/src/components/instance/profile/Privacy.vue b/src/components/instance/profile/Privacy.vue index abc9803..dd5a4c9 100644 --- a/src/components/instance/profile/Privacy.vue +++ b/src/components/instance/profile/Privacy.vue @@ -7,7 +7,7 @@ v-ripple > mdi-shield-account - Privacidade + {{ $t("privacy.title") }} @@ -97,7 +109,7 @@ @click="savePrivacy" variant="tonal" > - Salvar + {{ $t("save") }} @@ -125,46 +137,54 @@ export default { required: true, }, }, - data: () => ({ - AppStore: useAppStore(), - expanded: false, - loading: false, - error: false, - valid: false, - WAPrivacyValue: [ - { value: "all", title: "Todos" }, - { value: "contacts", title: "Contatos" }, - { value: "contact_blacklist", title: "Contatos exeto os da lista negra" }, - { value: "none", title: "Ninguém" }, - ], - WAPrivacyOnlineValue: [ - { value: "all", title: "Todos" }, - { value: "match_last_seen", title: "Igual ao visto por último" }, - ], - WAReadReceiptsValue: [ - { value: "all", title: "Todos" }, - { value: "none", title: "Ninguém" }, - ], + data() { + return { + AppStore: useAppStore(), + expanded: false, + loading: false, + error: false, + valid: false, + WAPrivacyValue: [ + { value: "all", title: this.$t("privacy.options.all") }, + { value: "contacts", title: this.$t("privacy.options.contacts") }, + { + value: "contact_blacklist", + title: this.$t("privacy.options.contactBlacklist"), + }, + { value: "none", title: this.$t("privacy.options.none") }, + ], + WAPrivacyOnlineValue: [ + { value: "all", title: this.$t("privacy.options.all") }, + { + value: "match_last_seen", + title: this.$t("privacy.options.matchLastSeen"), + }, + ], + WAReadReceiptsValue: [ + { value: "all", title: this.$t("privacy.options.all") }, + { value: "none", title: this.$t("privacy.options.none") }, + ], - privacyData: { - readreceipts: "all", - profile: "all", - status: "all", - online: "all", - last: "all", - groupadd: "all", - calladd: "all", - }, - defaultChatwootData: { - readreceipts: "all", - profile: "all", - status: "all", - online: "all", - last: "all", - groupadd: "all", - calladd: "all", - }, - }), + privacyData: { + readreceipts: "all", + profile: "all", + status: "all", + online: "all", + last: "all", + groupadd: "all", + calladd: "all", + }, + defaultChatwootData: { + readreceipts: "all", + profile: "all", + status: "all", + online: "all", + last: "all", + groupadd: "all", + calladd: "all", + }, + }; + }, methods: { toggleExpanded() { if (this.loading) return; @@ -190,7 +210,7 @@ export default { }, async loadPrivacy() { try { - if(!this.isOpen) return; + if (!this.isOpen) return; this.loading = true; this.error = false; const privacyData = await instanceController.profile.getPrivacy( diff --git a/src/components/instance/profile/ProfilePhoto.vue b/src/components/instance/profile/ProfilePhoto.vue index 2e1edd3..39edbc5 100644 --- a/src/components/instance/profile/ProfilePhoto.vue +++ b/src/components/instance/profile/ProfilePhoto.vue @@ -7,7 +7,7 @@ v-ripple > mdi-account-box - Foto de Perfil + {{ $t("profilePicture.title") }}
mdi-account-question - Sem foto de perfil + {{ $t("profilePicture.noPhoto") }}
@@ -51,7 +51,7 @@ size="50" /> mdi-upload - Selecionar foto + {{ $t("profilePicture.upload") }} mdi-delete - Remover foto + {{ $t("profilePicture.remove") }} - Mandar mensagem + {{ $t("sendMessage.title") }} - +