vocs
vocs copied to clipboard
feat: WIP i18n
Context
Work-in-progress branch. Adding support and examples for supporting multiple languages.
BREAKING CHANGE: No
Reference
Discussion #91
Features
i18n Feature:
- [x] vocs.config.ts -
sidebarexample i18n Playground - [x] Top left logo link associated with respective locale see Sidebar.tsx
- [x] useLocale - Custom hook for current locale
- [x] Config support for
defaultLocaleandlocalessee i18n Playground vocs.config.ts - [x] vocs.config.ts -
topNavsupport for different languages - [x] vocs.config.ts -
descriptionsupport for different languages - [x] vocs.config.ts -
editLinksupport for different languages - [x] vocs.config.ts -
titlesupport for different languages - [x] Desktop & Mobile Navs
- [x] Allow for translation to show on Mobile
- [x] Support translation for Previous and Next
- [x] Support Search translation
To see a demo, take a look at the i18n Playground
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| vocs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 22, 2024 2:09am |
Fully expect there to be some refactoring, but thought about showing how we can support i18n with some native functionality as a base.
Hey @jxom and @tmm any feedback with regards to this?
This is looking great and we would love to leverage it on our new docs site for Sequence that we've rebuilt using vocs. How can we help in getting it to the finish line? @codingwithmanny
@taylanpince waiting for @tmm and @jxom to review. If you have any feedback with regards to it, let me know also.
any updates on this PR? @tmm @codingwithmanny @jxom
@viv-cheung 🤷♂️
@Batdill if you approve the changes, happy to fix the conflicts, but just wanted to confirm before I put in the work that it would get merged because it's been a while. Let me know.
Yes Thank you
@Batdill let me know.
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
| Package | New capabilities | Transitives | Size | Publisher |
|---|
🚮 Removed packages: npm/@floating-ui/[email protected], npm/@hono/[email protected], npm/@mdx-js/[email protected], npm/@mdx-js/[email protected], npm/@shikijs/[email protected], npm/@shikijs/[email protected], npm/@shikijs/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]
Looking forward to merging this feature.
@Batdill This looks good to go, can we get it merged? We would love to start using it.