Closed a22yuen closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/loo-labs/waterpark/Be52N1TRo7qLvvEAMXtJuVEsiW4w
✅ Preview: https://waterpark-git-132-html-lang-en-loo-labs.vercel.app
Screenshot
Before After
Purpose
Close #132 Add en to lang attribute of html tag for assistive reading
Approach
Used the next.config.js to change the tag. An alternative would be to change the _document.tsx, but that requires changing its template code. Doing it this way is more straightforward and isolates the change to the next.config file
Testing
How did you test your changes? Checked the page before and after adding changes to ensure the lang=en in html tag
Blog Posts
https://melvingeorge.me/blog/set-html-lang-attribute-in-nextjs