docs: Document automatic product translation for Shopify V2#1
Open
devbot-repo-access[bot] wants to merge 1 commit intomainfrom
Open
docs: Document automatic product translation for Shopify V2#1devbot-repo-access[bot] wants to merge 1 commit intomainfrom
devbot-repo-access[bot] wants to merge 1 commit intomainfrom
Conversation
- Add 'Automatic Product Translation' section to change-quiz-language.md explaining how V2 uses @incontext to fetch translated product data - Add success callout to show-quiz-based-on-markets.md noting that product titles/descriptions/prices are auto-translated with Markets - Add callout to shopify-markets.md tutorial clarifying that only quiz questions/choices need manual translation, not product data - Update adapt-quizzes-to-markets.md to mention automatic currency conversion and product translation in V2 The V2 frontend already fetches product data with the Storefront API @incontext(country, language) directive, which returns translated titles, descriptions and localized prices. This was undocumented.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The documentation currently doesn't mention that Shopify V2 (BfS) automatically translates product titles, descriptions, and prices on the results page using the Storefront API
@inContext(country, language)directive.This is a key advantage of V2 that customers should know about.
Changes
1.
change-quiz-language.md@inContextworks with the Storefront API2.
show-quiz-based-on-markets.md3.
shopify-markets.md(tutorial)4.
adapt-quizzes-to-markets.md(customer success)Technical Background
The frontend_v2 code passes
countryandlanguageto all Storefront API product queries via the@inContextdirective (repos/frontend_v2/app/utils/shopifyFetch.ts). This means when a store has translations set up via Shopify's Translate & Adapt app, product data automatically comes back in the customer's locale.