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:
Matthew Taylor 2016-07-07 08:44:08 -04:00 committed by GitHub
commit c26ca701fb
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;