Skip to content

Implement custom routing mode #321

@aymericzip

Description

@aymericzip

Some users asked to localize the urls

We actually offer different modes : 'prefix-no-default' | 'prefix-all' | 'no-prefix' | 'search-params'

Doc: https://intlayer.org/doc/concept/configuration#routing-configuration

We you like to add an additional mode: 'custom-routes'

Wanted behavior:
instead of /en/about x /fr/about, getting /about x /a-propos

It should be implemented on both nextjs and vite proxies

packages/next-intlayer/src/proxy/intlayerProxy.ts

packages/vite-intlayer/src/intlayerProxyPlugin.ts

It should rewrite the url only, without redirection

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA request, idea, or new functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions