[ ] 📖 Documentation (updates to the documentation or readme)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
📚 Description
Resolves #2640
Not sure if it this is the correct way to solve this issue, I don't exactly understand how the comment works and should be handled. I looked at https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/pages/runtime/composables.ts#L55-L83 for reference, our defineI18nRoute macro works in a similar way to definePageMeta in Nuxt but that doesn't use a comment like this, while defineRouteRules does which is also similar to our macro.
Let me know if this should be solved differently, this change simply removes the comment and adds a usage check just like definePageMeta has.
🔗 Linked issue
2640
❓ Type of change
📚 Description
Resolves #2640
Not sure if it this is the correct way to solve this issue, I don't exactly understand how the comment works and should be handled. I looked at https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/pages/runtime/composables.ts#L55-L83 for reference, our
defineI18nRoute
macro works in a similar way todefinePageMeta
in Nuxt but that doesn't use a comment like this, whiledefineRouteRules
does which is also similar to our macro.Let me know if this should be solved differently, this change simply removes the comment and adds a usage check just like
definePageMeta
has.📝 Checklist