Skip to content

Is it possible to use specific URL to determine current locale? #1

@kiaking

Description

@kiaking

Hi, when I create multilingual app, I want the URL to always show current locale. What I want to do is this.

If the current locale is English, the url should be:

http://example.com/about

If the current locale is French, the url should be:

http://example.com/fr/about

This means that user can manually type desired locale in the URL and jump to the page of that locale. This is needed when I want share the website URL with different language to my friends.

For example, apple.com has this logic.

Is this something that this package is capable of? Or do I need to create such routing feature (middleware) by my self?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions