From 2f7b9fb4efee6400b9bfd9251b06e6cc3787e84e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 2 Jan 2025 22:58:36 +0200 Subject: [PATCH] replace deprecated tc with t equivalent --- src/components/conversation/conversation.vue | 4 ++-- src/components/emoji_input/emoji_input.js | 9 ++++++--- src/components/emoji_reactions/emoji_reactions.js | 2 +- .../extra_notifications/extra_notifications.vue | 6 +++--- .../interface_language_switcher.vue | 2 +- src/components/media_modal/media_modal.vue | 2 +- src/components/poll/poll.vue | 4 ++-- src/components/poll/poll_form.vue | 2 +- src/components/registration/registration.vue | 2 +- .../settings_modal/tabs/data_import_export_tab.vue | 2 +- src/components/status/status.vue | 4 ++-- src/components/thread_tree/thread_tree.vue | 4 ++-- 12 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue index 1c290b900..52d578b1e 100644 --- a/src/components/conversation/conversation.vue +++ b/src/components/conversation/conversation.vue @@ -73,7 +73,7 @@ @@ -146,7 +146,7 @@ diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js index 9baf63f22..09d44b0bd 100644 --- a/src/components/emoji_input/emoji_input.js +++ b/src/components/emoji_input/emoji_input.js @@ -293,9 +293,12 @@ const EmojiInput = { })) this.highlighted = this.defaultCandidateIndex this.$refs.screenReaderNotice.announce( - this.$tc('tool_tip.autocomplete_available', - this.suggestions.length, - { number: this.suggestions.length })) + this.$t( + 'tool_tip.autocomplete_available', + { number: this.suggestions.length }, + this.suggestions.length + ) + ) } }, methods: { diff --git a/src/components/emoji_reactions/emoji_reactions.js b/src/components/emoji_reactions/emoji_reactions.js index 77f8ecbb2..861fbe542 100644 --- a/src/components/emoji_reactions/emoji_reactions.js +++ b/src/components/emoji_reactions/emoji_reactions.js @@ -92,7 +92,7 @@ const EmojiReactions = { toggled: this.reactedWith(reaction.name) } ], - 'aria-label': this.$tc('status.reaction_count_label', reaction.count, { num: reaction.count }) + 'aria-label': this.$t('status.reaction_count_label', { num: reaction.count }, reaction.count) } } } diff --git a/src/components/extra_notifications/extra_notifications.vue b/src/components/extra_notifications/extra_notifications.vue index ffbb43eb3..5728dc98f 100644 --- a/src/components/extra_notifications/extra_notifications.vue +++ b/src/components/extra_notifications/extra_notifications.vue @@ -14,7 +14,7 @@ class="fa-scale-110 icon" icon="comments" /> - {{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }} + {{ $t('notifications.unread_chats', { num: unreadChatCount }, unreadChatCount) }}
- {{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }} + {{ $t('notifications.unread_announcements', { num: unreadAnnouncementCount }, unreadAnnouncementCount) }}
- {{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }} + {{ $t('notifications.unread_follow_requests', { num: followRequestCount }, followRequestCount) }}
@@ -108,7 +108,7 @@