Collection filters
We expose a few utilities to help you handle i18n collections in getStaticPaths
, through collectionFilters
.
byLocale
Allows you to filter by locale, assuming your entries slugs (or ids) follow the [locale]/[...parts]
pattern:
matchingEntries
Allows you to get all entries that match an entry you pass. The usecase is to generate dynamic params: