opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
23 stars 0 forks source link

NextJS CLI Auto-Migrate to i18n routing #85

Closed LorisSigrist closed 2 months ago

LorisSigrist commented 2 months ago

Context

The paraglide-next init cli currently does not update the next/link and next/routing imports to the internationalized versions. This is because this is very likely to cause false-positives & break something if done unsupervised.

Proposal

The CLI should offer a "Wizard" style interface where it loops over all the files, offers to update the imports, showing the diff in the console.

This can either be part of the init command or a dedicated command.
The drawback with this being part of the init command is that users are likely to understand what's happening at that point, so they won't be able to make the right judgement call.