Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

NextJS add lang attribute to HTML tag

//So to add this tag, we need to use the next.config.js file
module.exports = {
  i18n: {
    locales: ['en'],
    defaultLocale: 'en',
  },
};
Source by h.daily-dev-tips.com #
 
PREVIOUS NEXT
Tagged: #NextJS #add #lang #attribute #HTML #tag
ADD COMMENT
Topic
Name
3+8 =