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

feat: WIP i18n #95

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

codingwithmanny
Copy link
Sponsor Contributor

@codingwithmanny codingwithmanny commented Feb 11, 2024

Context

Work-in-progress branch.
Adding support and examples for supporting multiple languages.

BREAKING CHANGE: No

Reference

Discussion #91

Features

i18n Feature:

  • vocs.config.ts - sidebar example i18n Playground
  • Top left logo link associated with respective locale see Sidebar.tsx
  • useLocale - Custom hook for current locale
  • Config support for defaultLocale and locales see i18n Playground vocs.config.ts
  • vocs.config.ts - topNav support for different languages
  • vocs.config.ts - description support for different languages
  • vocs.config.ts - editLink support for different languages
  • vocs.config.ts - title support for different languages
  • Desktop & Mobile Navs
  • Allow for translation to show on Mobile
  • Support translation for Previous and Next
  • Support Search translation

To see a demo, take a look at the i18n Playground

Added support and examples for supporting multiple languages

BREAKING CHANGE: N
Copy link

vercel bot commented Feb 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vocs ❌ Failed (Inspect) Feb 18, 2024 6:16pm

Allows for different types of titles and descriptions to exist for
different languages

BREAKING CHANGE: No
@codingwithmanny
Copy link
Sponsor Contributor Author

codingwithmanny commented Feb 15, 2024

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

@codingwithmanny
Copy link
Sponsor Contributor Author

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

@taylanpince
Copy link

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

@codingwithmanny
Copy link
Sponsor Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants