Open dreitzner opened 8 months ago
For people who want type-safety out-of-the-box without waiting for this, I have successfully used global resource schema type definitions as a workaround.
I'm willing to contribute, but might need an assist: https://github.com/nuxt-modules/i18n/issues/1753#issuecomment-2146330404
For people who want type-safety out-of-the-box without waiting for this, I have successfully used global resource schema type definitions as a workaround.
Any details on the implementation? Can we reproduce on a vanilla nuxt project?
Describe the feature
vue-i18n supports type safe resource Schemas. (docs)
It would be nice to have a way to do the same in nuxt-i18n as well.
From what I can gleen from the source code it might only be needed to add a possible type type to
defineNuxtPlugin
that is passed tocreateI18n
.Additional information
Final checks