diff --git a/i18n/strings/en.json b/i18n/strings/en.json index 0cea0413..28a87894 100644 --- a/i18n/strings/en.json +++ b/i18n/strings/en.json @@ -66,7 +66,8 @@ "message_box_dm": "Message @{{name}}", "message_box_saved_notes": "Save to your notes", "no_messages": "No messages", - "no_messages_body": "Get the conversation started." + "no_messages_body": "Get the conversation started.", + "reply_not_loaded": "Message not loaded" }, "modals": { "confirm_deletion": { diff --git a/src/components/common/messaging/ReplyMessage.tsx b/src/components/common/messaging/ReplyMessage.tsx index 26f48e21..3ae72703 100644 --- a/src/components/common/messaging/ReplyMessage.tsx +++ b/src/components/common/messaging/ReplyMessage.tsx @@ -1,4 +1,5 @@ import {StyleSheet, View} from 'react-native'; +import { useTranslation } from 'react-i18next'; import {Message} from 'revolt.js'; @@ -13,6 +14,7 @@ type ReplyProps = { }; export const ReplyMessage = (props: ReplyProps) => { + const {t} = useTranslation(); if (!props.message?.system) { return ( @@ -47,7 +49,7 @@ export const ReplyMessage = (props: ReplyProps) => { ) : null ) : ( - Message not loaded + {t('app.messaging.reply_not_loaded')} )}