Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Consider Including a locale property on Page #1793

Copy link
Copy link
Open
@bliles

Description

@bliles
Issue body actions

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.