opral / inlang-paraglide-js

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

Paraglide-Next `init` CLI does not reliably detect pages/app router setup #136

Closed LorisSigrist closed 1 month ago

LorisSigrist commented 1 month ago

Context

The paraglide-next init command does not reliably detect if the app or pages router is being used in existing projects. This can cause it to execute the wrong setup in a project.

Proposal

Expand the markers that are used to determine if a given project uses the App/Pages router. Also accept that it can't always be determined automatically & prompt if needed.