diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index 4f8c1c81..1954a630 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -629,7 +629,7 @@ export const validateFile = async ( return msg } if (!file.type.startsWith(`${fileType}/`)) { - return error(__(`Only ${fileType} file is allowed.`)) + return error(__('Only {0} file is allowed.').format(fileType)) } if (file.type === 'image/svg+xml') {