How to set the HTML lang attribute in Next.js?
Originally Published Here ๐!
To set or add the lang attribute to the html tag in Next.js, you can add the i18n object to the next.config.js file (or Next.js config file).
It can be done like this,
/* next.config.js */
module.exports = {
i18n: {
...
melvingeorge-me.hashnode.dev1 min read