Localized Routing

Hello! I'm trying to figure out if there is any nice way to fix localized routing so instead of creating en.blog.$postSlug.tsx AND blogg.$postSlug (lang param omitted for base locale) I would just create blogg.$postSlug which loads the same route file, but depending on URL passes down a locale param. I.e:

/en/blog/my-slug-here/ -> blog.$postSlug.tsx (lang: "en"; slug: my-slug-here)
/blogg/my-slug-here/ -> blog.$postSlug.tsx (lang: ""; slug: my-slug-here)

Anybody got any ideas? Been trying to look into virtual file routing but can't seem to get it to work
Was this page helpful?