code: def get_message(message, *args, **kwargs):
          
          msg = current_app.extensions['simplelogin'].messages.get(message)
          if msg and (args or kwargs):
              return msg.format(*args, **kwargs)
          return msg
docs: Helper to get internal messages outside this instance