Skip to content

Commit 009c3b5

Browse files
jorgemoyaclaude
andcommitted
docs: update changeset to mention beforeRequest locale passthrough
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 71f3a75 commit 009c3b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.changeset/locale-param-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@bigcommerce/catalyst-client": minor
33
---
44

5-
Add optional `locale` parameter to `client.fetch()` and update `getChannelId` callback signature to `(defaultChannelId: string, locale?: string)`. This allows locale to be passed explicitly rather than resolved from headers, which is required for cached contexts where `headers()` is unavailable.
5+
Add optional `locale` parameter to `client.fetch()` and update `getChannelId` callback signature to `(defaultChannelId: string, locale?: string)`. Pass `locale` through to the `beforeRequest` callback as a second argument so it can set `Accept-Language` correctly inside cached contexts where `getLocale()` is unavailable.

0 commit comments

Comments
 (0)