nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.71k stars 478 forks source link

feat: allow passing external links to `localePath` #2759

Closed BobbieGoede closed 7 months ago

BobbieGoede commented 7 months ago

🔗 Linked issue

❓ Type of change

📚 Description

Resolves #1830

In cases where links are localized inside components or loops, it can be convenient to always use localePath. Instead of returning null or '' when passing an external link (string), it will return the link as is.

📝 Checklist