diff --git a/README.md b/README.md index 939545fc..0afe6fe1 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ As of the time of this writing the following translations exist: * Chinese (simplified) * German * Korean + * Romanian * Russian * Spanish diff --git a/src/views/messages-view.jsx b/src/views/messages-view.jsx index 8ac5f28b..47b44028 100644 --- a/src/views/messages-view.jsx +++ b/src/views/messages-view.jsx @@ -663,7 +663,7 @@ class MessagesView extends React.Component { handleAttachFile(file) { if (file.size > MAX_EXTERN_ATTACHMENT_SIZE) { // Too large. - this.props.onError(this.props.intl.formatMessage(messages.file_attachment_too_large, + this.props.onError(this.props.intl.formatMessage('file_attachment_too_large', {size: bytesToHumanSize(file.size), limit: bytesToHumanSize(MAX_EXTERN_ATTACHMENT_SIZE)}), 'err'); } else { this.setState({ docPreview: {