Locale-Restricted Blocks?

Hey again! Is it possible to hide or limit specific blocks in the backend based on the locale? For instance, if there are a bunch of videos in a block (or PDFs etc.) that are localized for english, and we simply don't want to include that section in a different language, is the only solution to modify the block on the frontend and write an if condition to display nothing if in a certain locale? Or is there a better course of action? My only concern with that path would be user confusion in the backend.
1 Reply
ifox
ifox9mo ago
Hi @RandomAnalyticsGuy for this use case we usually add an explicit languages selection in each blocks that potentially would be restricted to certain locales. By default it would be "published" for all, and admins can decide to only publish a block in a specific language. In your frontend you then have a field value to make the decision to render or not depending on the active locale