import React from 'react'; /** * Storefront language switcher (spec §7). Reads the enabled locales + current/default * locale from `eContext` (via `useAppState`, so it works during SSR and on the client), * and on change navigates to the same page under the chosen locale (prefix swap, shared * slugs). Renders nothing when fewer than two locales are enabled — so single-language * stores show no switcher. Plain `