vocs icon indicating copy to clipboard operation
vocs copied to clipboard

feat: WIP i18n

Open codingwithmanny opened this issue 1 year ago • 14 comments

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 - sidebar example 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 defaultLocale and locales see i18n Playground vocs.config.ts
  • [x] vocs.config.ts - topNav support for different languages
  • [x] vocs.config.ts - description support for different languages
  • [x] vocs.config.ts - editLink support for different languages
  • [x] vocs.config.ts - title support 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

codingwithmanny avatar Feb 11 '24 18:02 codingwithmanny

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

vercel[bot] avatar Feb 11 '24 18:02 vercel[bot]

Fully expect there to be some refactoring, but thought about showing how we can support i18n with some native functionality as a base.

codingwithmanny avatar Feb 15 '24 00:02 codingwithmanny

Hey @jxom and @tmm any feedback with regards to this?

codingwithmanny avatar Feb 29 '24 11:02 codingwithmanny

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 avatar Apr 19 '24 08:04 taylanpince

@taylanpince waiting for @tmm and @jxom to review. If you have any feedback with regards to it, let me know also.

codingwithmanny avatar Apr 25 '24 19:04 codingwithmanny

our new docs site for Sequence that we've rebuilt using vocs.

Very nice @taylanpince !!

mhpaler avatar Jun 05 '24 18:06 mhpaler

any updates on this PR? @tmm @codingwithmanny @jxom

viv-cheung avatar Oct 02 '24 09:10 viv-cheung

@viv-cheung 🤷‍♂️

codingwithmanny avatar Oct 08 '24 20:10 codingwithmanny

@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.

codingwithmanny avatar Oct 16 '24 15:10 codingwithmanny

Yes Thank you

Batdill avatar Oct 16 '24 15:10 Batdill

@Batdill let me know.

codingwithmanny avatar Oct 22 '24 02:10 codingwithmanny

Looking forward to merging this feature.

Woods30 avatar Nov 25 '24 06:11 Woods30

@Batdill This looks good to go, can we get it merged? We would love to start using it.

taylanpince avatar Jan 06 '25 13:01 taylanpince