Nuxt Typed Router support for the new NuxtLinkLocale component
UfukUstali opened this issue ยท 3 comments
Describe the feature
Currently the props for the component are not typed like they are in the NuxtLink component
<template>
<div>
<NuxtLinkLocale to=""></NuxtLinkLocale>
^ not typed
<NuxtLink to=""></NuxtLink>
^ typed ["/", "/about" ...]
</div>
</template>
Additional information
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide (The contribution guideline of nuxt-modules/i18n is compliant with Nuxt too).
- Check existing discussions and issues.
Would you be able to provide a reproduction? ๐
More info
Why do I need to provide a reproduction?
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.
If needs reproduction
labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
How can I create a reproduction?
We have a couple of templates for starting with a minimal reproduction:
๐ Reproduction starter (v8 and higher)
๐ Reproduction starter (edge)
A public GitHub repository is also perfect. ๐
Please ensure that the reproduction is as minimal as possible. See more details in our guide.
You might also find these other articles interesting and/or helpful:
Is this similar to, or the same as #2109?
Similar in the sense that it tries to achieve the same result but this is something nuxt-typed-router has already done the types are already there they are just not being utilized like they are in useLocalePath composable.
const localePath = useLocalePath()
localePath("")
^ typed