Skip to content

Commit

Permalink
fix: do not translate file names of uploaded files
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Dec 27, 2024
1 parent d7a9c3a commit 4c0c469
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/ui/upload/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
ButtonGroup,
Icon,
Paragraph,
PreserveData,
SecondaryActionButton,
UnorderedList,
UnorderedListItem,
Expand Down Expand Up @@ -171,7 +172,9 @@ export const FileUpload = React.forwardRef<HTMLLabelElement, FileUploadProps>(
<Alert ref={deleteAlertRef} tabIndex={0} className="dashed-focus">
<Paragraph>{t('file.delete_successful')}</Paragraph>
<UnorderedList className="pb-3">
<UnorderedListItem>{deletedFile.name}</UnorderedListItem>
<UnorderedListItem>
<PreserveData>{deletedFile.name}</PreserveData>
</UnorderedListItem>
</UnorderedList>
<ButtonGroup>
<SecondaryActionButton onClick={() => setDeletedFile(null)}>
Expand All @@ -185,7 +188,9 @@ export const FileUpload = React.forwardRef<HTMLLabelElement, FileUploadProps>(
<Paragraph>{t('file.upload_successful')}</Paragraph>
<UnorderedList className="pb-3">
{files.map((file, index) => (
<UnorderedListItem key={index}>{file.name}</UnorderedListItem>
<UnorderedListItem key={index}>
<PreserveData>{file.name}</PreserveData>
</UnorderedListItem>
))}
</UnorderedList>
<ButtonGroup>
Expand Down

0 comments on commit 4c0c469

Please sign in to comment.