diff --git a/src/assets/translations/en.json b/src/assets/translations/en.json index 0c5aa84..660c89b 100644 --- a/src/assets/translations/en.json +++ b/src/assets/translations/en.json @@ -167,7 +167,9 @@ "voice_recorder": { "swipe_to_cancel": "Swipe to cancel", "release_to_cancel": "Release to cancel", - "failed_to_record": "Failed to record audio" + "failed_to_record": "Failed to record audio", + "not_supported_title": "Not supported", + "not_supported_text": "Unfortunately, this browser does not support audio recording." }, "power_level": { "admin": "administrator", diff --git a/src/components/Chat.vue b/src/components/Chat.vue index 4c9a5d7..2a792e5 100644 --- a/src/components/Chat.vue +++ b/src/components/Chat.vue @@ -135,7 +135,11 @@
- {{$t('message.replying_to_event',{message: replyToEvent.getContent().body}) }} + {{ + $t("message.replying_to_event", { + message: replyToEvent.getContent().body, + }) + }}
@@ -185,6 +189,7 @@ v-if="!currentInput || currentInput.length == 0 || showRecorder" > mic + + mic +
- + - {{$t('menu.cancel')}} + {{ + $t("menu.cancel") + }} {{$t('menu.send')}}{{ $t("menu.send") }}
- + + + + + + {{ $t("voice_recorder.not_supported_title") }} + {{ $t("voice_recorder.not_supported_text") }} + + + + + {{ $t("menu.ok") }} + + + @@ -523,6 +565,7 @@ export default { selectedEvent: null, editedEvent: null, replyToEvent: null, + showNoRecordingAvailableDialog: false, showContextMenu: false, showContextMenuAnchor: null, showAvatarMenu: false, @@ -628,9 +671,11 @@ export default { typingMembersString() { const count = this.typingMembers.length; if (count > 1) { - return this.$t('message.users_are_typing',{count: count}); + return this.$t("message.users_are_typing", { count: count }); } else if (count > 0) { - return this.$t('message.user_is_typing',{user: this.typingMembers[0].name}); + return this.$t("message.user_is_typing", { + user: this.typingMembers[0].name, + }); } else { return ""; } @@ -1002,7 +1047,7 @@ export default { return RoomJoinRules; case "m.room.power_levels": - return RoomPowerLevelsChanged; + return RoomPowerLevelsChanged; case "m.room.encryption": return RoomEncrypted; @@ -1193,10 +1238,14 @@ export default { onUploadProgress(p) { if (p.total) { - this.currentSendProgress = - this.$t('message.upload_progress_with_total',{count: (p.loaded || 0), total: p.total}); + this.currentSendProgress = this.$t( + "message.upload_progress_with_total", + { count: p.loaded || 0, total: p.total } + ); } else { - this.currentSendProgress = this.$t('message.upload_progress',{count: (p.loaded || 0)}); + this.currentSendProgress = this.$t("message.upload_progress", { + count: p.loaded || 0, + }); } }, @@ -1382,7 +1431,8 @@ export default { const link = document.createElement("a"); link.href = url; link.target = "_blank"; - link.download = event.getContent().body || this.$t('fallbacks.download_name'); + link.download = + event.getContent().body || this.$t("fallbacks.download_name"); link.click(); URL.revokeObjectURL(url); })