0

I'm using Strapi v4 with the Internationalization (i18n) plugin enabled. While testing locale filtering through the REST API, I tried the following request:

GET /api/articles?locale=en-US&locale=es-ES

To my surprise, this returns content from both locales — as if Strapi (or the underlying Koa framework) is applying an OR filter for the locale field. I expected only one locale parameter to be allowed at a time, based on the official documentation, which only describes using a single locale value.

Is this behavior officially supported in Strapi v4? If it's not, I'd appreciate any guidance on the recommended way to query content from multiple locales — for example, whether I should send multiple requests or implement a custom controller.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.