diff --git a/src/lib/Translate.js b/src/lib/Translate.js index 5a1b778..3f7e57e 100644 --- a/src/lib/Translate.js +++ b/src/lib/Translate.js @@ -6,16 +6,20 @@ import Base from './Base' export default class Translate extends Base { static propTypes = { - value: PropTypes.string.isRequired + value: PropTypes.string.isRequired, + html: PropTypes.bool, + className: PropTypes.string } render() { - const { className, value } = this.props + const { value, html, className } = this.props const translation = I18n.translate(value) - return ( - {translation} - ) + if (html) { + return + } else { + return {translation} + } } }