mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 10:58:23 -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 +
|
uri: '/search/' + this.props.itemType +
|
||||||
'?limit=' + this.props.loadNumber +
|
'?limit=' + this.props.loadNumber +
|
||||||
'&offset=' + this.state.offset +
|
'&offset=' + this.state.offset +
|
||||||
|
'&language=' + this.props.intl.locale +
|
||||||
qText
|
qText
|
||||||
}, function (err, body) {
|
}, function (err, body) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
|
|
|
@ -61,6 +61,7 @@ var Search = injectIntl(React.createClass({
|
||||||
uri: '/search/' + this.props.tab +
|
uri: '/search/' + this.props.tab +
|
||||||
'?limit=' + this.props.loadNumber +
|
'?limit=' + this.props.loadNumber +
|
||||||
'&offset=' + this.state.offset +
|
'&offset=' + this.state.offset +
|
||||||
|
'&language=' + this.props.intl.locale +
|
||||||
termText
|
termText
|
||||||
}, function (err, body) {
|
}, function (err, body) {
|
||||||
var loadedSoFar = this.state.loaded;
|
var loadedSoFar = this.state.loaded;
|
||||||
|
|
Loading…
Reference in a new issue