Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible for use findOne (id ) or findOne (slug) with locale parameters for support strapi i18n #149

Closed
likelovewant opened this issue Jun 30, 2021 · 2 comments
Labels
question Further information is requested

Comments

@likelovewant
Copy link

Hi , I am facing an issue for get a single page or single type item from strapi collection type . i can not get a required item or post from strapi by findOne (slug , { _locale:i18n.locale}) for _slug.vue page , that's make my whole project stop there . since it's required a locale parameter to fetch other language for the item or post by slug . any idea ,how to achieve that or there is any other alternative option for this module rather than use graphql or apollo .

thanks in advance

Kevin

@likelovewant likelovewant added the question Further information is requested label Jun 30, 2021
@benjamincanac
Copy link
Member

Closing this as query params for findOne have been added in #167 and released in https://github.com/nuxt-community/strapi-module/releases/tag/v0.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants