Pass further data to Content
#1980
notlee
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Hey @notlee! Thanks for the suggestion. We have a bigger refactor planned to move the current route data object to be more widely available, so I think we might wait for that, which would likely unlock some of this. For the locale, if you’re on the latest version of Starlight (v0.24), you should be able to access it via |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.23.2
What is your idea?
Hey 👋 Love Starlight, thanks for all your work on it. Would you be open to a PR which passes further Astro props through to
Content
?packages/starlight/index.astro#L19
It would be useful for us to be able to access the current locale:
But perhaps passing all Astro props could be more generally helpful?
Why is this feature necessary?
We would like to change page content conditionally based on locale within
mdx
, without duplicating content for a full page translation.Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions