mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -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'>
|
<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}/>
|
||||||
|
|
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