Make notifications message translatable

This commit is contained in:
Pierre Burgy 2017-08-14 11:20:55 +02:00
parent 3c827eb5e3
commit a36ef36cc1
2 changed files with 7 additions and 6 deletions

View File

@ -5,6 +5,7 @@
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';
@ -44,7 +45,7 @@ class Notification extends React.Component { // eslint-disable-line react/prefer
<icon className={`ion ${options.icon} ${styles.notificationIcon}`}></icon>
<p className={styles.notificationContent}>
<span className={styles.notificationTitle}>{options.title}: </span>
<span>{this.props.notification.message}</span>
<span><FormattedMessage id={this.props.notification.message} /></span>
</p>
<icon className={`ion ion-ios-close-empty pull-right ${styles.notificationClose}`} onClick={this.onCloseClicked}></icon>
</li>