Making file too large translatable

parent 6fbfdd6f
...@@ -27,7 +27,7 @@ class UploadMediaRequest extends FormRequest ...@@ -27,7 +27,7 @@ class UploadMediaRequest extends FormRequest
$size = $this->getMaxFileSize(); $size = $this->getMaxFileSize();
return [ return [
'file.size' => "File is too large. Must be below {$size}MB." 'file.size' => trans('media::media.file too large', ['size' => $size])
]; ];
} }
......
...@@ -38,4 +38,5 @@ return [ ...@@ -38,4 +38,5 @@ return [
'create resource' => 'Create media', 'create resource' => 'Create media',
'edit resource' => 'Edit media', 'edit resource' => 'Edit media',
'destroy resource' => 'Delete media', 'destroy resource' => 'Delete media',
'file too large' => 'File is too large. Must be below :size MB.'
]; ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment