Skip to content

HTML lang attribute initialization exception #11253

@SuperManito

Description

@SuperManito

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

When entering the page for the first time, the lang attribute is set to 'en'. The page will only switch to the corresponding locality after loading is complete. This will trigger the browser translation plugin. It seems that this issue did not exist before version 3.8. This bug seems to only occur in the development environment.

Reproducible demo

No response

Steps to reproduce

  • 1

Image

  • 2

Image

Expected behavior

.

Actual behavior

.

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used: 3.8.0 & 3.8.1
  • Environment name and version (e.g. Chrome 89, Node.js 16.4): latest
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS): latest

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executiondifficulty: starterIssues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.good first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions