summaryrefslogtreecommitdiffstats
path: root/web/react/components/suggestion/search_suggestion_list.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-28 11:59:38 -0500
committer=Corey Hulen <corey@hulen.com>2016-01-28 11:59:38 -0500
commite37b2c62f3148ec26f9eddd57d208a640715e68e (patch)
tree27e9484181d1b20ef4e78513f66866d4b82ec900 /web/react/components/suggestion/search_suggestion_list.jsx
parent2138b46f6cdab5fca49680c2e1994703ab71b1c3 (diff)
parentdb37897538f134b29784453797510c20e1e9303c (diff)
downloadchat-e37b2c62f3148ec26f9eddd57d208a640715e68e.tar.gz
chat-e37b2c62f3148ec26f9eddd57d208a640715e68e.tar.bz2
chat-e37b2c62f3148ec26f9eddd57d208a640715e68e.zip
Merge branch 'master' into PLT-1765
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 (