mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #1025 from TheGrits/patch-6
Fix gh-1023: Localize Explore Title and Dropdown
This commit is contained in:
commit
110a7f2dc0
2 changed files with 9 additions and 4 deletions
|
@ -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}/>
|
||||
|
|
5
src/views/explore/l10n.json
Normal file
5
src/views/explore/l10n.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"explore.trending": "Trending",
|
||||
"explore.popular": "Popular",
|
||||
"explore.recent": "Recent"
|
||||
}
|
Loading…
Reference in a new issue