add lang attribute to html in Nextjs



    This code exports a module with the name "next.config.js" and contains an object with the name "i18n" . The object has two properties: "locales" and "defaultLocale" . The "locales" property contains an array of strings, one for each language. The "defaultLocale" property specifies the default language.

    Library: next

    /* next.config.js  */
    module.exports = {
      i18n: {
        locales: ["en"],
        defaultLocale: "en",
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.