In multilingual site. We assign a category tag to each language other than main, i.e eng tag English, french French category.
So every time you switch among flags, the page shows post which were tagged using the appropriate selected category, that filtered in the properties of the data set.
How? It looks easy, In the editor choose flag of a language. Modify properties on dataset (Blog/post), add a filter using UI, no code; just select options from editors interface: Categories include that language tag.
The blog has a examples of post in spanish (main) and english, category English.
But TypeError exception raise, quite bit noisy.
Any clue?