code: async def trigger(self, action, args):
          
          if 'update' not in action \
                  and 'error' not in action \
                  and action.startswith('pre_process'):
              locale = await self.get_user_locale(action, args)
              self.ctx_locale.set(locale)
              return True
docs: Event trigger
  
          :param action: event name
          :param args: event arguments
          :return: