DEV Community

Discussion on: NextJS add lang attribute to HTML tag

Collapse
 
vhs profile image
vhs

HTTP has a standardized header for communicating the user's preferred language to the web server. If Next.js doesn't already do it for you, you can use this npm module server-side to get the preferences.