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

View file

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