storefront-foundation / react-storefront

React Storefront - PWA for eCommerce. 100% offline, platform agnostic, headless, Magento 2 supported. Always Open Source, Apache-2.0 license. Join us as contributor (contributors@reactstorefront.io).
https://www.reactstorefront.io
Other
796 stars 190 forks source link

How to pass translated hint texts for MagnifyHint #231

Open ScyDev opened 2 years ago

ScyDev commented 2 years ago

As advised by Howie, I'm posting this question here. It's neither a bug report nor a feature request.

I'm trying to pass translated hint texts for "Hover to Zoom", "Click to Expand" and "Tap to Expand" through MediaCarousel to MagnifyHint, but I don't know if I'm doing it right or if it is even possible. Please help.

<MediaCarousel
className={classes.carousel}
lightboxClassName={classes.lightboxCarousel}
thumbnail={thumbnail.current}
height="100%"
media={color.media || (product && product.media)}
magnifyProps={{zoomTextDesktop: "Mit der Maus zoomen"}}
/>