Skip to content

renderLocalePicker

const renderLocalePicker: (template, options?) => Promise<PreparedFragment>

Defined in: @storesynk/react/dist/render.d.ts:146

A Markets locale picker region’s prepared render. The template contains <change-country> / <change-language> (select mode); the server fills the selects from the shop’s localization data - options, currency labels, active selection - and embeds the localization payload so the client store adopts it without a fetch. Single-market shops keep the pickers hidden, exactly like the client engine. Pass locale (from getRequestLocale()) so the buyer’s chosen country is pre-selected server-side.

ReactNode | string

RenderLocalePickerOptions

Promise<PreparedFragment>