Skip to content

site lang not working #2683

@EloFran

Description

@EloFran
  • I confirm that this is an issue rather than a question.

Bug report

vuepress does not change the language of the site

Steps to reproduce

module.exports = {
  locales: {
    "/": {
      lang: "es", // this will be set as the lang attribute on <html>
      title: "Mi Título",
      description: "Descripción",
    },
  },

What is expected?

that modifies the language of the html code to Spanish

What is actually happening?

Captura

Other relevant information

  • Output of npx vuepress info in my VuePress project:
Environment Info:

  System:
    OS: Windows 10 10.0.18363
    CPU: (4) x64 Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
  Binaries:
    Node: 12.19.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 86.0.4240.111
    Edge: Spartan (44.18362.449.0)
  npmPackages:
    @vuepress/core:  1.7.1 
    @vuepress/theme-default:  1.7.1 
    vuepress: ^1.5.3 => 1.7.1 
  npmGlobalPackages:
    vuepress: Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions