Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Retrieve stories by language is not working #4

Open
claudiabdm opened this issue Jul 31, 2021 · 0 comments
Open

Retrieve stories by language is not working #4

claudiabdm opened this issue Jul 31, 2021 · 0 comments

Comments

@claudiabdm
Copy link

Hi!

I wasn't able to get stories by language using the following method:

sb.getStories({ language: 'es' });

I took a look at the code and this package is using a storyblok-js-client package that uses Storyblok API v1. However, language as query param was introduced in api v2 as I read in the docs.
I changed the API version in the storyblok-js-client package and the above code worked correctly so I think that may be the problem or am I using it wrong?

Thanks in advance!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant