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', })}