Skip to content

Locales Dropdown isn't displayed in navBar #322

Closed
@m4dz

Description

Describe the bug
Following #50 and #91, locales and theme.locales stay empty, whatever has been defined in config.js.

To Reproduce
Steps to reproduce the behavior:

  1. add to config.js
    module.exports = {
      ...
      locales: {
        '/': { lang: 'en-US' },
        '/fr/': { lang: ' fr-FR' },
      },
      ...
      themeConfig: {
        ...
        locales: {
          '/': { label: 'English' },
          '/fr/' : { label: 'Français' },
        },
      },
    };
    

Expected behavior
Dropdown lang selected should be displayed.

System Info

  • vitepress version: 0.15.4
  • vite version: 2.3.7
  • Node version: v16.3.0
  • OS version: macOS 11.4

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions