Next.js Discord

Discord Forum

Changing HTML Lang Attribute to be different than the locale provided

Unanswered
Icelandic Sheepdog posted this in #help-forum
Open in Discord
Icelandic SheepdogOP
Hello, I have a site that is using the next i8ln in next config:

i18n: {
    locales: ["default", "us", "ko", "jp", "cn", "zh", "de", "fr", "es"],
    defaultLocale: "default",
    localeDetection: false,
  },


I'd like the html attribute for when the user is on /us to be lang="en"

Is that possible without having to change us in the next config?

0 Replies