From 7f466aacc67854bb402dd834fe1d292271a6f294 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Thu, 7 Jul 2016 08:38:10 -0400 Subject: [PATCH] Add language to search / explore api requests Fixes #686, thanks @thisandagain ! --- src/views/explore/explore.jsx | 1 + src/views/search/search.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/views/explore/explore.jsx b/src/views/explore/explore.jsx index e51dd4a0a..6fb119741 100644 --- a/src/views/explore/explore.jsx +++ b/src/views/explore/explore.jsx @@ -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) { diff --git a/src/views/search/search.jsx b/src/views/search/search.jsx index ecd6cff29..58883db54 100644 --- a/src/views/search/search.jsx +++ b/src/views/search/search.jsx @@ -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;