nuxt-ui-pro / docs

A documentation template made with Nuxt UI Pro.
https://docs-template.nuxt.dev
134 stars 38 forks source link

feat: add language selector #67

Closed EvanSchleret closed 1 month ago

EvanSchleret commented 2 months ago

Hi there!

I wanted to add the ability to use multiple languages based on this template. I saw an open issue raising this question (issue #42). My proposal is probably not the most elegant, but it gets the job done. However, I am open to any better suggestions, especially to make it more "elegant", particularly for the first refreshNavigation() in the onMounted() of docs.vue.

Available if needed :)

benjamincanac commented 1 month ago

Thanks for the proposal, but I don't think we should add this feature by default as most docs don't use i18n. It's also pretty simple to achieve using @nuxt/content locales option.

EvanSchleret commented 1 month ago

No problem, thanks for looking into it