nickytonline / web3-starter

An opinionated web3 starter for building dApps

Home Page:https://the-web3-starter.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Run yarn dev
  2. Using the browser tools, inspect the page.
  3. 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!