Skip to content

Commit 12c7bb3

Browse files
committed
fix(post): i18n without value
1 parent dc39044 commit 12c7bb3

File tree

1 file changed

+7
-1
lines changed
  • src/GZCTF/ClientApp/src/pages/posts/[postId]

1 file changed

+7
-1
lines changed

src/GZCTF/ClientApp/src/pages/posts/[postId]/edit.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,13 @@ const PostEdit: FC = () => {
187187
onClick={() =>
188188
modals.openConfirmModal({
189189
title: t('post.button.delete'),
190-
children: <Text size="sm">{t('post.content.delete')}</Text>,
190+
children: (
191+
<Text size="sm">
192+
{t('post.content.delete', {
193+
title: curPost?.title,
194+
})}
195+
</Text>
196+
),
191197
onConfirm: onDelete,
192198
confirmProps: { color: 'red' },
193199
})

0 commit comments

Comments
 (0)