Open
Description
Feature request
What problem does this feature solve?
I'm working on adding fallback language support (show the content in English if it isn't translated yet) through redirects in enhanceApp.js. To do this, I'm determining the pages that are available in each language by looking at siteData.pages. It would be much simpler if the Page object included the locale as a property.
What does the proposed API look like?
This is already a computed property of the page, but the computed properties are not always available, so this would just mean adding this property to the Page object.
How should this be implemented in your opinion?
Add the property when compiling the list of pages.
Are you willing to work on this yourself?
Yes, I've temporarily(?) created a plugin to do this: https://github.com/bliles/vuepress-page-locale
Metadata
Metadata
Assignees
Labels
Request to add a new featureRequest to add a new featureQuestion or discussionQuestion or discussion