frontends icon indicating copy to clipboard operation
frontends copied to clipboard

[BUG] API Client does not use context language/currency

Open kennyzehn opened this issue 11 months ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

I changed the currency and language. But the API returns data always in the shop default language|currency. I figured out that this happens since version 0.3.0.

await apiClient.invoke( "updateContext patch /context", { languageId: lang, currencyId: currency, } );

Expected Behavior

Return data in context language and currency

Steps To Reproduce

  1. Change language and currency via updateContext patch /context
  2. Fetch Products or Navigation Items
  3. Check result :)

Environment

- OS: MacOS
- Node: v18.17.0
- pnpm: /

Anything else?

No response

kennyzehn avatar Feb 29 '24 19:02 kennyzehn