Skip to content

Commit

Permalink
fixes wrong lang tag when visiting the site in spanish locale
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymtz committed May 2, 2024
1 parent 699e364 commit 30df46c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ const nextTranslate = require('next-translate-plugin')

/** @type {import('next').NextConfig} */
const nextConfig = {
i18n: {
locales: ['en', 'es'],
defaultLocale: 'en',
localeDetection: true,
},
reactStrictMode: true,
compiler: {
styledComponents: true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tomatoro",
"version": "3.0.181",
"version": "3.0.182",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Script from 'next/script'

export default function Document () {
return (
<Html lang="en">
<Html>
<Head/>
<body>
<Main/>
Expand Down

0 comments on commit 30df46c

Please sign in to comment.