Next.js Discord

Discord Forum

Setting 'dir' and 'lang' attributes for SSG

Unanswered
jwueller posted this in #help-forum
Open in Discord
I'm building a static site that is intended for a specific audience, and should therefore have static 'lang' and 'dir' attributes.

Next.js disallows using the i18n config option for SSG, so I tried adding it directly to the html tag, but it seems to get stripped out, even in SSG mode.

Is there any way for me to get those attributes into the statically generated HTML? It seems like a Catch-22 situation right now. If this is a bug I'll happily raise it in the issue tracker.

0 Replies