diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-18 15:36:16 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-18 15:53:46 +0100 |
commit | 85d1b74ac3bbd563c35a7212069b84f8d3a6bd99 (patch) | |
tree | 5226341c1cbe8e7cf983b629577c22812056062a /app/assets/javascripts/components/features/followers | |
parent | c1be1ac7c6ebaabcd936f41d7a74ec8977625942 (diff) |
Adding german localization
Diffstat (limited to 'app/assets/javascripts/components/features/followers')
-rw-r--r-- | app/assets/javascripts/components/features/followers/components/account.jsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/features/followers/components/account.jsx b/app/assets/javascripts/components/features/followers/components/account.jsx index 123a40cab..4a1fca6da 100644 --- a/app/assets/javascripts/components/features/followers/components/account.jsx +++ b/app/assets/javascripts/components/features/followers/components/account.jsx @@ -4,7 +4,11 @@ import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import { Link } from 'react-router'; import IconButton from '../../../components/icon_button'; -import { injectIntl } from 'react-intl'; +import { defineMessages, injectIntl } from 'react-intl'; + +const messages = defineMessages({ + follow: { id: 'account.follow', defaultMessage: 'Follow' } +}); const outerStyle = { padding: '10px', @@ -69,7 +73,7 @@ const Account = React.createClass({ buttons = ( <div style={buttonsStyle}> - <IconButton icon={following ? 'user-times' : 'user-plus'} title={intl.formatMessage({ id: 'account.follow', defaultMessage: 'Follow' })} onClick={this.handleFollow} active={following} /> + <IconButton icon={following ? 'user-times' : 'user-plus'} title={intl.formatMessage(messages.follow)} onClick={this.handleFollow} active={following} /> </div> ); } |