Add missing lang attribute on the <html> element
nickytonline opened this issue · comments
Describe the bug
The project uses NEXT.js. By default, there is no lang
attribute on the <HTML />
element.
To Reproduce
Steps to reproduce the behavior:
- Run
yarn dev
- Using the browser tools, inspect the page.
- The
<html>
element will have no lang attribute.
Expected behavior
The <html />
element should have a lang
attribute.
The way to fix this is to add the following to the next.config.js
file.
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
+ i18n: {
+ locales: ['en'],
+ defaultLocale: 'en',
+ },
};
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
Add any other context about the problem here.
I’d like to work on this issue. Please assign it to me 👍
Assigned it to you @AlexVCS!