mitydigital / statamic-feedamic

An Atom and RSS feed for Statamic 3, 4 and 5
https://docs.mity.com.au/feedamic
8 stars 9 forks source link

Include possibility to filter feed entries by locales. #10

Closed Sm1lEE closed 2 years ago

Sm1lEE commented 2 years ago

When using the multi-site feature of Statamic, there might be feed collections available in multiple languages. This feature adds the abilitiy to only show entries for a given set of locales.

The default behavior is to show entries of all locales (to ensure backwards compatibility). To limit the entries locales, an array of locales can be provided. To show entries of the current local only, the special keyword 'current' can be used.

martyf commented 2 years ago

Thanks for this PR, really nice implementation! I'll get the docs updated and publish a release.

Sm1lEE commented 2 years ago

Thanks @martyf for the nice addon, glad I could contribute.