Here i18n is described for collections: https://docs.astro.build/en/recipes/i18n/#use-collections-for-translated-content
How to translate the path segments like blog in pages/[lang]/blog/[...slug].astro without introducing redundancy for [...slug].astro files?