docs(i18n): Handle slug as array in computed property#3703
docs(i18n): Handle slug as array in computed property#3703
Conversation
|
@mmeester is attempting to deploy a commit to the Nuxt Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughThis pull request updates documentation in the i18n integration guide to reflect how slug computation handles array route parameters. The change shows that when Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
🔗 Linked issue
❓ Type of change
📚 Description
The example in the code for i18n only handles slugs that have a single level, for slugs with multiple levels like
/nl/foo/bar,route.params.slugwill be['foo', 'bar']resulting in foo,bar when transforming it to a string.📝 Checklist