Skip to content

Chore/pass accept language on requests - #52

Open
renatoalmeidav wants to merge 2 commits into
masterfrom
chore/pass-accept-language-on-requests
Open

Chore/pass accept language on requests#52
renatoalmeidav wants to merge 2 commits into
masterfrom
chore/pass-accept-language-on-requests

Conversation

@renatoalmeidav

Copy link
Copy Markdown

What is the purpose of this pull request?

Pass Accept-Language header through the catalog-api-proxy middleware to enable locale-aware catalog responses.

What problem is this solving?

The Catalog API supports returning translated Category fields (name, titleTag, metaTagDescription) based on the Accept-Language header. However, the
catalog-api-proxy was not forwarding this header, preventing the GraphQL layer from receiving pre-translated values.
This change is required for the following companion PRs:

How should this be manually tested?

  1. Deploy this PR along with the companion PRs
  2. Query product { categoryTree { name titleTag metaTagDescription } } on a localized binding
  3. Verify that Category fields are returned in the correct locale based on the request's Accept-Language header
  4. Confirm no Messages encoding or double translation occurs

Screenshots or example usage

N/A

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

@vtex-io-ci-cd

vtex-io-ci-cd Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot

Copy link
Copy Markdown

Beep boop 🤖

I noticed you didn't make any changes at the docs/ folder

  • There's nothing new to document 🤔
  • I'll do it later 😞

In order to keep track, I'll create an issue if you decide now is not a good time

  • I just updated 🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant