-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Is your feature request related to a problem?
- Imagine I have my application which has a set of routes:
['/', '/[item]'] - Now, I would like to internationalize the application. The way I would like to do this is to add
/[lang]/as a prefix to my routes. So the new routes are really['/[lang]/', '/[lang]/[item]'].
How can I achieve the above today?
There are couple of issues we run into:
- there is no easy way to create route prefixes
- Within the application the best practice is to have absolute URLs. This creates an issue since the URL now contains a prefix.
Describe the solution you'd like
When creating an application, I would like to:
- Specify a prefix param that should be outside of my application routes.
- Have URL building take the prefix into account.
Describe alternatives you've considered
explicitly add /[lang] into the application route.
Issues:
- When building routes it may be hard to know the current
lang - navigation across
langshould never be SPA (always MPA). Really navigation acrosslangis a different website.
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels