wevm/vocs

Support i18n

codingwithmanny opened this issue · 1 comments

Context

Would like to see that the project supports:

  1. Automatic language detection
  2. Routing for different languages (assuming just folder structure /en /fr) but also allows a default without the need for a language at the end of the url (ex: /en)
  3. Allows for language dropdown and easy switching and mapping between pages (ex: /en/getting-started -> /fr/getting-started)

Solution

See example https://vitepress.dev/reference/default-theme-config#i18nrouting

jxom commented

Why bother maintaining translations when you can use this bad boy?

Screenshot 2024-02-09 at 8 49 02 am