-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
is there a way to pass the locale value of "extractLang(request.headers.get('accept-language'), request.url)" to shop-api call?
i have tried something like this, but a error raised: "Internal server error: Reading locale outside of context."
const executeRequest = async (options: Options) => {
const locale = getLocale();
const httpResponse = await fetch(`${ENV_VARIABLES.VITE_VENDURE_PUBLIC_URL}/?languageCode=${locale}`, options);
return await extractTokenAndData(httpResponse);
};
Metadata
Metadata
Assignees
Labels
No labels