vitepress
vitepress copied to clipboard
Make it possible to translate some labels
Is your feature request related to a problem? Please describe.
This issue is very similar to #893
I noticed some more text that is hardcoded into the default theme components, and it would be super if they were translateable.
- "Appearance" in
VPNavScreenAppearance.vue - "Menu" in
VPLocalNav.vue - "Return to top" in
VPLocalNav.vue
Describe the solution you'd like
Same as #893, themeConfig options would do the job.
I guess they could be grouped with themeConfig.outlineTitle, themeConfig.lastUpdatedText and themeConfig.docFooter under something like themeConfig.translate or themeConfig.customText?
Describe alternatives you've considered
We can still extend the theme to get this functionality, so this is not critical.
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
Hi! Yeah we would fix all these issues. In the meanwhile, you can track #631.
Can you help us figure out all such labels to override?
Good to know, thanks!
I’ve looked a bit and those are the only ones that I found, but of course if I notice new ones I’ll add them :)