Add language to search / explore api requests

Fixes #686, thanks @thisandagain !
This commit is contained in:
Matthew Taylor 2016-07-07 08:38:10 -04:00
parent ad8b43a592
commit 7f466aacc6
2 changed files with 2 additions and 0 deletions

View file

@ -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) {

View file

@ -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;