getEntries with set locale
It's a simple issue. Idk if this is a feature request, but you can't specify the locale when executing contentfulClient.getEntries().
I' ve tried something like this: contentfulClient.getEntries({ content_type: 'some-content-type', }, {locale: 'en-US'}) but no success.
What can I do to fetch the entries of a content_type in another locale?
Hi David,
what you are trying to achieve should be possible like this:
client.getEntries({ content_type: 'some-content-type', locale: 'en-US' });
For further information check out the documentation: https://contentful.github.io/contentful.js/contentful/9.1.18/ContentfulClientAPI.html#.getEntries
Please let me know if this resolved your issue.
Closing due to inactivity for now - please feel free to re-open.
Seems like the locale param works, but the type definition does not include it and, at the moment, we need to use @ts-ignore. Any way around that?