Skip to content

site lang not working #2683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
EloFran opened this issue Oct 25, 2020 · 2 comments
Closed
1 task

site lang not working #2683

EloFran opened this issue Oct 25, 2020 · 2 comments
Labels
need feedback Awaiting author response

Comments

@EloFran
Copy link

EloFran commented Oct 25, 2020

  • 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
@d-pollard
Copy link
Collaborator

Hmmm, is this viewing source or viewing the inspector? During development, these values aren't added to the DOM via SSR; but bundled for production, they are.

@d-pollard d-pollard added the need feedback Awaiting author response label Oct 26, 2020
@EloFran
Copy link
Author

EloFran commented Oct 29, 2020

Thx. If it is true, it happens to me in development mode, in production mode it is correct.
Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need feedback Awaiting author response
Projects
None yet
Development

No branches or pull requests

2 participants