- Strapi Version: 4.1.0
- Operating System: MacOS 12.3
- Database: MySQL
- Node Version: “>=12.x.x <=16.x.x”
- NPM Version: “>=6.0.0”
- Yarn Version:
I’m trying to get a single entry from a collection with localization, but I can’t find the right query string. Specifically, I’m trying to get a localized blog entry from a blogs collection.
.../api/blogs?locale-fr-CA[&optional-populate-query], but it brings all the blog entries, in the localized language.
.../api/blogs/1?locale=fr-CA[&optional-populate-query] will return the correct entry, but ignore the
locale and display only the default locale. All the optional population works, regardless of the order (I’ve trived putting the
locale at end, in the beginning, and in the middle, same behaviour).
I could bring all the entries and filter by ID, but it’s not the ideal solution. What I really want is to being just the specific entry in the correct locale.
Is it possible?