diff options
author | Corey Hulen <corey@hulen.com> | 2016-01-28 11:43:10 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-01-28 11:43:10 -0500 |
commit | db37897538f134b29784453797510c20e1e9303c (patch) | |
tree | fcd0f919912c9c0346db543caf789c63e0e124a7 /web/react/components/suggestion/at_mention_provider.jsx | |
parent | 211fa8e5cc2e1f559098cefead42e1503073624d (diff) | |
parent | a72ba140240266b03558dba716e6f4815392d491 (diff) | |
download | chat-db37897538f134b29784453797510c20e1e9303c.tar.gz chat-db37897538f134b29784453797510c20e1e9303c.tar.bz2 chat-db37897538f134b29784453797510c20e1e9303c.zip |
Merge pull request #2010 from ZBoxApp/PLT-7-tutorial
PLT-7: Refactoring frontend (chunk 3)
Diffstat (limited to 'web/react/components/suggestion/at_mention_provider.jsx')
-rw-r--r-- | web/react/components/suggestion/at_mention_provider.jsx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/web/react/components/suggestion/at_mention_provider.jsx b/web/react/components/suggestion/at_mention_provider.jsx index e502c981d..50231ad15 100644 --- a/web/react/components/suggestion/at_mention_provider.jsx +++ b/web/react/components/suggestion/at_mention_provider.jsx @@ -5,6 +5,8 @@ import SuggestionStore from '../../stores/suggestion_store.jsx'; import UserStore from '../../stores/user_store.jsx'; import * as Utils from '../../utils/utils.jsx'; +import {FormattedMessage} from 'mm-intl'; + const MaxUserSuggestions = 40; class AtMentionSuggestion extends React.Component { @@ -16,11 +18,21 @@ class AtMentionSuggestion extends React.Component { let icon; if (item.username === 'all') { username = 'all'; - description = 'Notifies everyone in the team'; + description = ( + <FormattedMessage + id='suggestion.mention.all' + defaultMessage='Notifies everyone in the team' + /> + ); icon = <i className='mention-img fa fa-users fa-2x' />; } else if (item.username === 'channel') { username = 'channel'; - description = 'Notifies everyone in the channel'; + description = ( + <FormattedMessage + id='suggestion.mention.channel' + defaultMessage='Notifies everyone in the channel' + /> + ); icon = <i className='mention-img fa fa-users fa-2x' />; } else { username = item.username; |