Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVDOCS-6108 [new]: GraphQL Storefront API, add multi-language support #561

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bc-andreadao
Copy link
Collaborator

@bc-andreadao bc-andreadao commented Oct 2, 2024

DEVDOCS-6108

What changed?

  • Add new doc for multi-language support

Release notes draft

Anything else?

cc @bigcommerce/team-storefront

Comment on lines +17 to +28
## Returned data

The response includes the following:
- **Enabled locales:** The list of the enabled locales for a channel. Includes the default locale and the shopper languages in the browser cookies.
<br />
- **Resolved locale:** Indicates the locale that was selected to contain the returned data.

If you chose a default locale in the control panel, the resolved locale is the default locale.

If you chose to override the default locale with the shopper browser language, the API uses the browser's cookies to determine a shopper's language preference. To override shopper's preference, you can specify a preferred locale through the `Accept-Language` header or a GraphQL directive when you send the query. The directive takes precedence over the `Accept-Language` header<br />
<br />
- **Product data for the resolved locale:** If there is no product data for the resolved locale, the response defaults to global product data.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is accurate, if someone could confirm

@bc-andreadao bc-andreadao marked this pull request as ready for review October 4, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant