enable-shopify-markets

Installation
SKILL.md

Enable Shopify Markets

Add multi-region commerce to the Vercel Shop template. The fresh baseline is one deployment with clean URLs, inline copy in lib/content/index.ts, and explicit shopConfig.localization = { country: "US", language: "EN", locale: "en-US" }; it has no next-intl, catalogs, lib/i18n/, or lib/params/server.ts.

Copy translation and commerce market selection are separate concerns. This skill's regional-locale strategy deliberately combines them: a validated en-US, en-CA, or fr-CA selects translated copy plus Shopify country/language context. Confirm that coupling fits the store before adopting it. Do not infer a shopper's commerce country merely from a copy locale introduced by enable-i18n. Preserve existing installations that intentionally separate language and country; do not force them into this example model. A copy-only i18n installation keeps its translations and routing: identify its existing fixed commerce country/language before adding regional selection, and get approval for new coupling or changed public URLs. In a noninteractive run, stop and report unresolved routing or market-model choices instead of choosing for the user.

For a new regional-locale implementation, do not invent a separate market key, redundant market-to-locale map, currency map, or /market/locale route. Existing custom market models need an explicit migration decision, not automatic removal.

Examples of valid public routing:

  • Locale sub-path: /fr-CA/products/shoe
  • Invisible cookie routing: /products/shoe for every locale
  • Per-domain: example.ca/fr-CA/products/shoe or a single locale on example.fr/products/shoe

Never generate redundant paths such as /ca/fr-CA/products/shoe.

enable-i18n owns the copy and routing mechanics: inspection, next-intl install and plugin, catalogs, the move into app/[locale], getLocale(), request config, Cache Components traps, proxy composition and matcher, and buildAlternates. Run its steps first and keep its rules; this skill adds the market model.

For any Shopify GraphQL edit, use Shopify AI Toolkit to confirm current API facts and validate the complete operation, then follow shopify-graphql-reference for this template's placement, transforms, cache role, locale flow, and invalidation. Read every Storefront API operation and cache wrapper, cart creation and buyer identity updates, Customer Account auth context, the agent request payload and tools, and the SEO, sitemap, and markdown routes, since each carries commerce context.

Installs
91
Repository
vercel/shop
GitHub Stars
150
First Seen
Jun 19, 2026