Theme 💎 Built for Sidekick ✍️ Sidekick drafts it — you apply it
shopify sidekick theme markets

Language and Currency Selector

Build a Shopify Markets language and currency selector — dropdown or flyout listing locales and currencies, mobile fullscreen modal, ARIA-accessible.

Sidekick writes it — you put it live

Sidekick produces the content or code for this, but doesn't apply it to your store itself. You'll paste or publish the result yourself — the prompt tells Sidekick to explain exactly where it goes.

📋 Prompt
Run in Sidekick
Generate the Liquid, CSS, and JavaScript for a language and currency selector section that I can paste into my theme as a custom section, integrating with Shopify Markets. The selector should render as a dropdown or flyout panel in the [SELECTOR_POSITION] (header, footer, or both). The language selector should list all available locales from the shop.published_locales object, displaying each language name in its native script. The currency selector should list all enabled currencies from the localization.available_countries object, showing the country flag emoji, country name, and currency code. When the customer selects a new language or currency, submit the selection using the Shopify localization form with the _method input set to the correct locale and country endpoints. Include settings for display style [DISPLAY_STYLE] (dropdown, flyout, or inline), trigger text format [TRIGGER_FORMAT] (such as flag plus currency code or language name plus currency symbol), background color [SELECTOR_BG_COLOR], text color [SELECTOR_TEXT_COLOR], hover color [HOVER_COLOR], border color [BORDER_COLOR], and max-height [MAX_HEIGHT] pixels for the dropdown list. On mobile, the selector should display as a fullscreen modal with a list layout for easy tapping. Add a setting to show or hide the country flag [SHOW_FLAGS]. Ensure the component is accessible with proper ARIA roles, labels, and keyboard navigation. Provide complete Liquid, CSS, and JavaScript.

To use the generated code: go to Online Store > Themes > Edit code, create a new file at sections/language-currency-selector.liquid, and paste the code in. Save, then open the theme customizer and add the section to your header and/or footer where you want the selector to appear.

How to Use

  1. Copy the prompt above
  2. Open Shopify Sidekick in your Shopify admin
  3. Paste the prompt and replace the bracketed placeholders with your details
  4. Review Sidekick's response and apply the suggestions