Skip to content

feature request getPathWithoutLocale #30

Open
@reslear

Description

@reslear

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions