Skip to content

feature request getPathWithoutLocale #30

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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