mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Add language to search / explore api requests
Fixes #686, thanks @thisandagain !
This commit is contained in:
parent
ad8b43a592
commit
7f466aacc6
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