getgrav / grav-plugin-feed

Grav Feed Plugin
https://getgrav.org
MIT License
16 stars 11 forks source link

Use Grav current language rather than lang setting #56

Closed nbusseneau closed 4 years ago

nbusseneau commented 4 years ago

If LangSwitcher is enabled, use current language provided by LangSwitcher as RSS feed language code, superseding lang code from Feed plugin settings.

nbusseneau commented 4 years ago

Actually, Grav current language is always available, thus it can relied upon even when LangSwitcher is not installed, and supersede lang setting at all times. I can squash both commits if you want, so that the first (now useless) one disappears :)

nbusseneau commented 4 years ago

I am closing in favor of #57, as it contains this fix.