frontends
frontends copied to clipboard
[BUG] API Client does not use context language/currency
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
- Change language and currency via
updateContext patch /context
- Fetch Products or Navigation Items
- Check result :)
Environment
- OS: MacOS
- Node: v18.17.0
- pnpm: /
Anything else?
No response