root layout with i18n and unlocalized routes.
Unanswered
Sloth bear posted this in #help-forum
Sloth bearOP
Hi im building an app that has user facing routes that are localized and i want to create a non-localized route (inside the app folder but ouside of the [locale]) and im wondering how can i make a layout file in the app root that works without the localized routes having the duplicate html and body tags
2 Replies
American Chinchilla
I had the same problem, solved it by making a catch-all segment to handle the routes:
example: https://pastebin.com/WqnfWRTf
example: https://pastebin.com/WqnfWRTf
@Sloth bear Hi im building an app that has user facing routes that are localized and i want to create a non-localized route (inside the app folder but ouside of the [locale]) and im wondering how can i make a layout file in the app root that works without the localized routes having the duplicate html and body tags
American Chinchilla
I forgot to decode the path in the generateMetadata function