How do I change smart-quote language in Gatsby JS?

155 Views Asked by At

I've searched high & low for any documentation on this—without any luck.

I use the Gatsby starter-blog template for my website. My website is in Norwegian and thus should use French guillemets (« ») instead of “ and ” as quotation marks.

How do I change the automatic smart-quote behavior? Is it an option in the gatsby-remark-smartypants plugin? Is there some sort of library out there that I can use?

I've been able to set the website's language to Norwegian in seo.js.

Any help is greatly appreciated!

1

There are 1 best solutions below

1
On

I think you should wrap your quotes in inline quotation element so the quotation marks are displayed correctly based on the language you set on the html element.