QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.19k stars 52 forks source link

[Question] `typedRoutes` support? #358

Open gustaveWPM opened 4 months ago

gustaveWPM commented 4 months ago

Hello!

This feature is still early and rather esoteric.

Nevertheless, I'd just like to ask this: how could this be supported by Next International, given the several URL remapping strategies?

QuiiBz commented 4 months ago

Looking at the docs, Next.js will generate a types definition file in .next/types, so technically we either have to: 1) Modify the types definition file when it changes 2) Hook into Next.js' process to update the paths before the definition file gets written to disk

Since this feature is experimental I don't think it's worth yet to investigate it.