Merge pull request #1025 from TheGrits/patch-6

Fix gh-1023: Localize Explore Title and Dropdown
This commit is contained in:
chrisgarrity 2016-11-28 13:48:40 -05:00 committed by GitHub
commit 110a7f2dc0
2 changed files with 9 additions and 4 deletions

View file

@ -137,7 +137,7 @@ var Explore = injectIntl(React.createClass({
<div className='outer'> <div className='outer'>
<TitleBanner className="masthead"> <TitleBanner className="masthead">
<div className="inner"> <div className="inner">
<h1>Explore</h1> <h1><FormattedMessage id='general.explore' /></h1>
</div> </div>
</TitleBanner> </TitleBanner>
<Tabs> <Tabs>
@ -156,9 +156,9 @@ var Explore = injectIntl(React.createClass({
<Form className='sort-mode'> <Form className='sort-mode'>
<Select name="sort" <Select name="sort"
options={[ options={[
{value: 'trending', label: 'Trending'}, {value: 'trending', label: <FormattedMessage id='explore.trending' />},
{value: 'popular', label: 'Popular'}, {value: 'popular', label: <FormattedMessage id='explore.popular' />},
{value: 'recent', label: 'Recent'} {value: 'recent', label: <FormattedMessage id='explore.recent' />}
]} ]}
value={this.props.mode} value={this.props.mode}
onChange={this.changeSortMode}/> onChange={this.changeSortMode}/>

View file

@ -0,0 +1,5 @@
{
"explore.trending": "Trending",
"explore.popular": "Popular",
"explore.recent": "Recent"
}