From 0a79e373199583b3f4456742df94f7b2946b8ad9 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 17 Mar 2025 17:19:02 +0530 Subject: [PATCH] fix: i18n --- .../Conversation/Chips/TypingIndicator.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/components-next/Conversation/Chips/TypingIndicator.vue b/app/javascript/dashboard/components-next/Conversation/Chips/TypingIndicator.vue index bd4feacd9..78ffcb768 100644 --- a/app/javascript/dashboard/components-next/Conversation/Chips/TypingIndicator.vue +++ b/app/javascript/dashboard/components-next/Conversation/Chips/TypingIndicator.vue @@ -3,24 +3,24 @@ import { useFunctionGetter, useMapGetter } from 'dashboard/composables/store'; import { useI18n } from 'vue-i18n'; import { computed } from 'vue'; -const { $t } = useI18n(); +const { t } = useI18n(); const getTypingUsersText = (users = []) => { const count = users.length; const [firstUser, secondUser] = users; if (count === 1) { - return $t('TYPING.ONE', { user: firstUser.name }); + return t('TYPING.ONE', { user: firstUser.name }); } if (count === 2) { - return $t('TYPING.TWO', { + return t('TYPING.TWO', { user: firstUser.name, secondUser: secondUser.name, }); } - return $t('TYPING.MULTIPLE', { user: firstUser.name, count: count - 1 }); + return t('TYPING.MULTIPLE', { user: firstUser.name, count: count - 1 }); }; const currentChat = useMapGetter('getSelectedChat');