AddImages component wasn't translated

This commit is contained in:
Vesa Luusua 2017-07-05 15:15:01 +03:00
parent 571304ea17
commit 9b341f5ab0
2 changed files with 5 additions and 2 deletions

View file

@ -8,6 +8,7 @@
* </AddImages>
*/
import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
import { SortableContainer } from 'react-sortable-hoc';
import classNames from 'classnames';
import { Promised } from '../../components';
@ -41,7 +42,7 @@ class Thumbnail extends Component {
const { file, id, imageId } = this.props;
// While image is uploading we show overlay on top of thumbnail
const uploadingOverlay = !imageId
? <div className={css.thumbnailLoading}>Uploading</div>
? <div className={css.thumbnailLoading}><FormattedMessage id="AddImages.upload" /></div>
: null;
return (
<Promised
@ -57,7 +58,7 @@ class Thumbnail extends Component {
</li>
);
}}
renderRejected={() => <li className={css.thumbnail}>Could not read file</li>}
renderRejected={() => <li className={css.thumbnail}><FormattedMessage id="AddImages.couldNotReadFile" /></li>}
/>
);
}

View file

@ -1,4 +1,6 @@
{
"AddImages.upload": "Upload",
"AddImages.couldNotReadFile": "Could not read file",
"AuthenticationPage.emailAlreadyInUse": "An account already exists with this email address. Try logging in instead.",
"AuthenticationPage.loginFailed": "The email and password you entered did not match our records. Please double-check and try again.",
"AuthenticationPage.loginLinkText": "Login",