Commit 7f466aac authored by Matthew Taylor's avatar Matthew Taylor

Add language to search / explore api requests

Fixes #686, thanks @thisandagain !
parent ad8b43a5
...@@ -64,6 +64,7 @@ var Explore = injectIntl(React.createClass({ ...@@ -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({ ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment