Skip to content

Commit

Permalink
chore: updated hardcoded error message with translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Usmanfee committed Oct 24, 2024
1 parent 85ed207 commit 5a353eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/assets/locales/de/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -2310,7 +2310,10 @@
"placeholder": "",
"uploadError": "Not Uploaded",
"uploadSuccess": "Uploaded",
"uploadProgess": "Uploaded % of % files"
"uploadProgess": "Uploaded % of % files",
"error": {
"fileTooLarge": "Datei ist größer als"
}
},
"userRoles": {
"title": "Assigned Catena-X Portal Roles",
Expand Down
5 changes: 4 additions & 1 deletion src/assets/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,10 @@
"placeholder": "",
"uploadError": "Not Uploaded",
"uploadSuccess": "Uploaded",
"uploadProgess": "Uploaded % of % files"
"uploadProgess": "Uploaded % of % files",
"error": {
"fileTooLarge": "File is Larger than"
}
},
"userRoles": {
"title": "Assigned Catena-X Portal Roles",
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/basic/Dropzone/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const Dropzone = ({
return file.size > maxFileSize
? {
code: 'size-too-large',
message: `File is larger than ${fileSizeInMB} MB`,
message: `${t('shared.dropzone.error.fileTooLarge')} ${fileSizeInMB} MB`,
}
: null
}
Expand Down

0 comments on commit 5a353eb

Please sign in to comment.