mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #687 from mewtaylor/issue/gh-686-language
Fix GH-686: Add language to search / explore api requests
This commit is contained in:
commit
c26ca701fb
2 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,7 @@ var Explore = injectIntl(React.createClass({
|
|||
uri: '/search/' + this.props.itemType +
|
||||
'?limit=' + this.props.loadNumber +
|
||||
'&offset=' + this.state.offset +
|
||||
'&language=' + this.props.intl.locale +
|
||||
qText
|
||||
}, function (err, body) {
|
||||
if (!err) {
|
||||
|
|
|
@ -61,6 +61,7 @@ var Search = injectIntl(React.createClass({
|
|||
uri: '/search/' + this.props.tab +
|
||||
'?limit=' + this.props.loadNumber +
|
||||
'&offset=' + this.state.offset +
|
||||
'&language=' + this.props.intl.locale +
|
||||
termText
|
||||
}, function (err, body) {
|
||||
var loadedSoFar = this.state.loaded;
|
||||
|
|
Loading…
Reference in a new issue