Skip to content
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

$lang and $localePath computed globals #166

Closed
patak-dev opened this issue Nov 30, 2020 · 1 comment · Fixed by #167
Closed

$lang and $localePath computed globals #166

patak-dev opened this issue Nov 30, 2020 · 1 comment · Fixed by #167

Comments

@patak-dev
Copy link
Member

$lang: The language of the current page. Default: en-US.
$localePath: The locale path prefix for the current page. Default: /.

These are the only two computed globals from Vuepress that are not currently in Vitepress.

I think they are good additions. I could send a PR for them if we want to add them.

@kiaking
Copy link
Member

kiaking commented Nov 30, 2020

Yeah that would be great! We should add them. PR welcome 👍

kiaking added a commit that referenced this issue Jan 22, 2021
close #166 

Co-authored-by: Kia King Ishii <kia.king.08@gmail.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants