chore(): Update locale header usage (#14318)

* chore(): Update locale header usage

* Create three-kiwis-shave.md

* chore(): Update locale header usage
This commit is contained in:
Adrien de Peretti
2025-12-16 10:39:40 +01:00
committed by GitHub
parent e94e1a4676
commit c8a7122ba9
5 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ export class Client {
// We always want to fetch the up-to-date JWT token before firing off a request.
const headers = new Headers(defaultHeaders)
const customHeaders = {
"content-language": this.locale,
"x-medusa-locale": this.locale,
...this.config.globalHeaders,
...(await this.getJwtHeader_()),
...init?.headers,