From 9f9c50ddb8e25ebc31ef0f08d2854f667e31a164 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sat, 17 May 2025 11:39:18 +0200 Subject: [PATCH] Fix typo --- src/components/Chat/ChatList.tsx | 2 +- src/components/Chat/ChatOptions.tsx | 3 ++- src/components/Group/ListOfGroupPromotions.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Chat/ChatList.tsx b/src/components/Chat/ChatList.tsx index afb88d0..0589832 100644 --- a/src/components/Chat/ChatList.tsx +++ b/src/components/Chat/ChatList.tsx @@ -369,7 +369,7 @@ export const ChatList = ({ - {t('group.message.generic.invalid_data', { + {t('group:message.generic.invalid_data', { postProcess: 'capitalizeFirst', })} diff --git a/src/components/Chat/ChatOptions.tsx b/src/components/Chat/ChatOptions.tsx index 303ff34..9afd134 100644 --- a/src/components/Chat/ChatOptions.tsx +++ b/src/components/Chat/ChatOptions.tsx @@ -34,6 +34,7 @@ import { ContextMenuMentions } from '../ContextMenuMentions'; import { convert } from 'html-to-text'; import { generateHTML } from '@tiptap/react'; import ErrorBoundary from '../../common/ErrorBoundary'; +import { useTranslation } from 'react-i18next'; const extractTextFromHTML = (htmlString = '') => { return convert(htmlString, { @@ -567,7 +568,7 @@ export const ChatOptions = ({ - {t('group.message.generic.invalid_data', { + {t('group:message.generic.invalid_data', { postProcess: 'capitalizeFirst', })} diff --git a/src/components/Group/ListOfGroupPromotions.tsx b/src/components/Group/ListOfGroupPromotions.tsx index 4e4be16..32f032e 100644 --- a/src/components/Group/ListOfGroupPromotions.tsx +++ b/src/components/Group/ListOfGroupPromotions.tsx @@ -575,7 +575,7 @@ export const ListOfGroupPromotions = () => { - {t('group.message.generic.invalid_data', { + {t('group:message.generic.invalid_data', { postProcess: 'capitalizeFirst', })}