-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export page utility functions #23521
Comments
We think it would be good to create a single library we can depend on in Nuxt and in i18n. If @posva would like to expose it we could depend on it, otherwise I am happy to create a library. |
Do you mean the matcher? Or do you have some specific functions in mind? There is already an exposed |
I'm meaning a library to convert/parse file system paths into route matching syntax. |
I have been holding off on using this for i18n routing since it was marked internal 😅 .. I'll look into using it.
I would be interested in this, for i18n routing I keep on wanting to use Vue Router internal utilities like
This would be useful for Nuxt i18n (and other file based i18n routing as well nuxt-modules/i18n#2686 (comment) /cc @kazupon), I don't think https://github.com/posva/unplugin-vue-router exposes this right? |
I have also found myself copying these functions in some modules so quite interested in this. |
Describe the feature
In
@nuxtjs/i18n (v8)
we manually sync the implementation ofparseSegment
andgetRoutePath
as these are not exported. Not sure if exporting as is, or in@nuxt/kit
, or elsewhere would make more sense.Additional information
Final checks
The text was updated successfully, but these errors were encountered: