diff --git a/client/src/components/context.vue b/client/src/components/context.vue index 11cf348f..34e82301 100644 --- a/client/src/components/context.vue +++ b/client/src/components/context.vue @@ -165,12 +165,12 @@ kick(member: Member) { this.$swal({ - title: this.$t('context.confirm.kick_title', { name: member.displayname }), - text: this.$t('context.confirm.kick_text', { name: member.displayname }), + title: this.$t('context.confirm.kick_title', { name: member.displayname }) as string, + text: this.$t('context.confirm.kick_text', { name: member.displayname }) as string, icon: 'warning', showCancelButton: true, - confirmButtonText: this.$t('context.confirm.button_yes'), - cancelButtonText: this.$t('context.confirm.button_cancel'), + confirmButtonText: this.$t('context.confirm.button_yes') as string, + cancelButtonText: this.$t('context.confirm.button_cancel') as string, }).then(({ value }) => { if (value) { this.$accessor.user.kick(member) @@ -180,12 +180,12 @@ ban(member: Member) { this.$swal({ - title: this.$t('context.confirm.ban_title', { name: member.displayname }), - text: this.$t('context.confirm.ban_text', { name: member.displayname }), + title: this.$t('context.confirm.ban_title', { name: member.displayname }) as string, + text: this.$t('context.confirm.ban_text', { name: member.displayname }) as string, icon: 'warning', showCancelButton: true, - confirmButtonText: this.$t('context.confirm.button_yes'), - cancelButtonText: this.$t('context.confirm.button_cancel'), + confirmButtonText: this.$t('context.confirm.button_yes') as string, + cancelButtonText: this.$t('context.confirm.button_cancel') as string, }).then(({ value }) => { if (value) { this.$accessor.user.ban(member) @@ -195,12 +195,12 @@ mute(member: Member) { this.$swal({ - title: this.$t('context.confirm.mute_title', { name: member.displayname }), - text: this.$t('context.confirm.mute_text', { name: member.displayname }), + title: this.$t('context.confirm.mute_title', { name: member.displayname }) as string, + text: this.$t('context.confirm.mute_text', { name: member.displayname }) as string, icon: 'warning', showCancelButton: true, - confirmButtonText: this.$t('context.confirm.button_yes'), - cancelButtonText: this.$t('context.confirm.button_cancel'), + confirmButtonText: this.$t('context.confirm.button_yes') as string, + cancelButtonText: this.$t('context.confirm.button_cancel') as string, }).then(({ value }) => { if (value) { this.$accessor.user.mute(member) @@ -210,12 +210,12 @@ unmute(member: Member) { this.$swal({ - title: this.$t('context.confirm.unmute_title', { name: member.displayname }), - text: this.$t('context.confirm.unmute_text', { name: member.displayname }), + title: this.$t('context.confirm.unmute_title', { name: member.displayname }) as string, + text: this.$t('context.confirm.unmute_text', { name: member.displayname }) as string, icon: 'warning', showCancelButton: true, - confirmButtonText: this.$t('context.confirm.button_yes'), - cancelButtonText: this.$t('context.confirm.button_cancel'), + confirmButtonText: this.$t('context.confirm.button_yes') as string, + cancelButtonText: this.$t('context.confirm.button_cancel') as string, }).then(({ value }) => { if (value) { this.$accessor.user.unmute(member) diff --git a/client/src/locale/en-us.ts b/client/src/locale/en-us.ts index 895ac208..62ff7df7 100644 --- a/client/src/locale/en-us.ts +++ b/client/src/locale/en-us.ts @@ -37,7 +37,7 @@ export const context = { unmute_text: 'Are you sure you want to unmute {name}?', button_yes: 'Yes', button_cancel: 'Cancel', - } + }, } export const controls = {