🎨(frontend) avoid duplicating prefix in i18n's key
Simple enhancement. Avoid duplicating prefix.
This commit is contained in:
committed by
aleb_the_flash
parent
17f8ec6319
commit
716d40dd4e
@@ -13,16 +13,18 @@ export const MuteAlertDialog = ({
|
|||||||
onSubmit: () => void
|
onSubmit: () => void
|
||||||
name: string
|
name: string
|
||||||
}) => {
|
}) => {
|
||||||
const { t } = useTranslation('rooms')
|
const { t } = useTranslation('rooms', {
|
||||||
|
keyPrefix: 'participants.muteParticipantAlert',
|
||||||
|
})
|
||||||
return (
|
return (
|
||||||
<Dialog isOpen={isOpen} role="alertdialog">
|
<Dialog isOpen={isOpen} role="alertdialog">
|
||||||
<P>{t('participants.muteParticipantAlert.description', { name })}</P>
|
<P>{t('description', { name })}</P>
|
||||||
<HStack gap={1}>
|
<HStack gap={1}>
|
||||||
<Button variant="text" size="sm" onPress={onClose}>
|
<Button variant="text" size="sm" onPress={onClose}>
|
||||||
{t('participants.muteParticipantAlert.cancel')}
|
{t('cancel')}
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="text" size="sm" onPress={onSubmit}>
|
<Button variant="text" size="sm" onPress={onSubmit}>
|
||||||
{t('participants.muteParticipantAlert.confirm')}
|
{t('confirm')}
|
||||||
</Button>
|
</Button>
|
||||||
</HStack>
|
</HStack>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|||||||
Reference in New Issue
Block a user