Plug like helpers for liveview

Is there some alternative to plug macros in liveview, for example:

plug EnsureRole, [:admin]

def mount(_...) do
  # mount called -> plug has passed?
end

It would also help with setting locale in each live view, related: How to handle localisation in live view? - #3 by outlog

Seems like the recommended way as of now is to extract the common logic into helpers, phoenix_live_view/lib/phoenix_live_view.ex at 5a4e7f66c455815d020f831885ad9c3ec1fdfe04 · phoenixframework/phoenix_live_view · GitHub