protected function translate($operation, array $params = [])
    {

        $locale     = is_null($this->locale) ? app()->getLocale() : $this->locale;
        $translator = app('translator');
        if (($name       = $this->notificationContents->find($operation, $locale)) !== false) {
            return $translator->transWith($name, $params);
        }
        return $translator->trans("antares/logger::operations.{$operation}", $params, 'messages', $locale, false);
    }
protected function translate($operation, array $params = [])
    {

        $locale     = is_null($this->locale) ? app()->getLocale() : $this->locale;
        $translator = app('translator');
        if (($name       = $this->notificationContents->find($operation, $locale)) !== false) {
            return $translator->transWith($name, $params);
        }
        return $translator->trans("antares/logger::operations.{$operation}", $params, 'messages', $locale, false);
    }
protected function translate ( $ operation , array $ params = [ ] ) { $ locale = is_null ( $ this -> locale ) ? app ( ) -> getLocale ( ) : $ this -> locale ; $ translator = app ( 'translator' ) ; if ( ( $ name = $ this -> notificationContents -> find ( $ operation , $ locale ) ) !== false ) { return $ translator -> transWith ( $ name , $ params ) ; } return $ translator -> trans ( "antares/logger::operations.{$operation}" , $ params , 'messages' , $ locale , false ) ; }
Translates log message

@param String $operation
@param array $params
@return String
Translates log message