summaryrefslogtreecommitdiffstats
path: root/web/react/components/suggestion/search_suggestion_list.jsx
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-01-28 11:21:12 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-01-28 11:21:12 -0300
commita72ba140240266b03558dba716e6f4815392d491 (patch)
tree44931bbd3b4de7f126f95270595195dc273e3e44 /web/react/components/suggestion/search_suggestion_list.jsx
parentc8ca70870f1e202eb5784839520199fdf0beaeec (diff)
downloadchat-a72ba140240266b03558dba716e6f4815392d491.tar.gz
chat-a72ba140240266b03558dba716e6f4815392d491.tar.bz2
chat-a72ba140240266b03558dba716e6f4815392d491.zip
PLT-7: Refactoring frontend (chunk 3)
- Tutorial components - Claim components - Suggestion components
Diffstat (limited to 'web/react/components/suggestion/search_suggestion_list.jsx')
-rw-r--r--web/react/components/suggestion/search_suggestion_list.jsx17
1 files changed, 14 insertions, 3 deletions
diff --git a/web/react/components/suggestion/search_suggestion_list.jsx b/web/react/components/suggestion/search_suggestion_list.jsx
index 3378a33a0..40f5d8777 100644
--- a/web/react/components/suggestion/search_suggestion_list.jsx
+++ b/web/react/components/suggestion/search_suggestion_list.jsx
@@ -3,7 +3,8 @@
import Constants from '../../utils/constants.jsx';
import SuggestionList from './suggestion_list.jsx';
-import * as Utils from '../../utils/utils.jsx';
+
+import {FormattedMessage} from 'mm-intl';
export default class SearchSuggestionList extends SuggestionList {
componentDidUpdate(prevProps, prevState) {
@@ -19,9 +20,19 @@ export default class SearchSuggestionList extends SuggestionList {
renderChannelDivider(type) {
let text;
if (type === Constants.OPEN_CHANNEL) {
- text = 'Public ' + Utils.getChannelTerm(type) + 's';
+ text = (
+ <FormattedMessage
+ id='suggestion.search.public'
+ defaultMessage='Public Channels'
+ />
+ );
} else {
- text = 'Private ' + Utils.getChannelTerm(type) + 's';
+ text = (
+ <FormattedMessage
+ id='suggestion.search.private'
+ defaultMessage='Public Groups'
+ />
+ );
}
return (