Skip to content

Commit

Permalink
fix: translation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocostadev committed Oct 14, 2024
1 parent 38c30b8 commit 080a306
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box } from '@rocket.chat/fuselage';
import type { ReactElement } from 'react';
import React from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { useTranslation } from 'react-i18next';

import GenericModal from '../../../../components/GenericModal';

Expand All @@ -24,7 +24,7 @@ const EnableE2EEModal = ({ onConfirm, onClose, roomType }: EnableE2EEModalProps)
onCancel={onClose}
>
<Box mbe={16} is='p'>
<Trans i18nKey='E2E_enable_encryption_description' tOptions={{ roomType }} />
{t('E2E_enable_encryption_description', { roomType })}
</Box>
</GenericModal>
);
Expand Down

0 comments on commit 080a306

Please sign in to comment.