The Next Adapter offers i18n routing with translated paths. In order to do this the users must list out some of the pathnames that are available in the app.
It would be really nice DX if the translated navigation APIs suggested the routes that are known to be available (other values are still supported OFC).
I don't see anyone else doing this, so this is a great opportunity to differentiate ourselves.
Proposal
Type the href property of the Link component and other routing APIs with a type that suggests the known paths, without enforcing them so you can still use other values.
Context
The Next Adapter offers i18n routing with translated paths. In order to do this the users must list out some of the pathnames that are available in the app.
It would be really nice DX if the translated navigation APIs suggested the routes that are known to be available (other values are still supported OFC).
I don't see anyone else doing this, so this is a great opportunity to differentiate ourselves.
Proposal
Type the
href
property of theLink
component and other routing APIs with a type that suggests the known paths, without enforcing them so you can still use other values.