Clear and concise description of the problem
need write regexp
like this \/\S{0,2}\/?landings\/?(.+)? - is simple en/fr (but is en_US?)
http://localhost:3010/davos
http://localhost:3010/landings/davos
http://localhost:3010/landings
http://localhost:3010/landings/
http://localhost:3010/fr/landings/davos
http://localhost:3010/fr/landings
http://localhost:3010/fr/landings/
Suggested solution
it would be convenient to parse h3 routers on the server for example function: getPathWithoutLocale
http://localhost:3010/fr/landings -> /landings
http://localhost:3010/en_US/landings -> /landings
Alternative
No response
Additional context
No response
Validations
Clear and concise description of the problem
need write regexp
like this
\/\S{0,2}\/?landings\/?(.+)?- is simpleen/fr(but isen_US?)Suggested solution
it would be convenient to parse h3 routers on the server for example function:
getPathWithoutLocaleAlternative
No response
Additional context
No response
Validations