wiziple / gatsby-plugin-intl

Gatsby plugin that turns your website into an internationalization-framework out of the box.
http://gatsby-starter-default-intl.netlify.com
325 stars 178 forks source link

How do I use this together with slices? #228

Open emilkarl opened 1 year ago

emilkarl commented 1 year ago

Trying to make this work when having header and footer as slices with a set locale in the slice context. Works ok in dev mode but can’t build due to this error:

image

My guess is I can’t use useIntl() hook in the slice and need to do something else. Not sure what tho? Anybody have a good solution to the problem?

j-mcgregor commented 1 year ago

Hi did you find a solution to this? I'm having the same issue