Closed
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:
- 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
Labels
No labels