Skip to content

Commit

Permalink
Send locale when retrieving items
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Sep 12, 2024
1 parent 42626e7 commit e21a9ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyzotero/zotero.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ def _retrieve_data(self, request=None, params=None):
self.self_link = request
# ensure that we wait if there's an active backoff
self._check_backoff()
if params:
params["locale"] = self.locale
if not params:
params = {"locale": self.locale}
self.request = requests.get(
url=full_url, headers=self.default_headers(), params=params
)
Expand Down

0 comments on commit e21a9ca

Please sign in to comment.