original_string: public function setTimeLocale($locale = null)
      {
          $locale = $locale ?: $this->session->get('_locale', $this->app->getLocale());
  
          setlocale(LC_TIME, $this->config->get('translatable.full_locales.' . $locale, null));
  
          Carbon::setLocale($locale);
      }
code: public function setTimeLocale($locale = null)
      {
          $locale = $locale ?: $this->session->get('_locale', $this->app->getLocale());
  
          setlocale(LC_TIME, $this->config->get('translatable.full_locales.' . $locale, null));
  
          Carbon::setLocale($locale);
      }
code_tokens: public function setTimeLocale ( $ locale = null ) { $ locale = $ locale ? : $ this -> session -> get ( '_locale' , $ this -> app -> getLocale ( ) ) ; setlocale ( LC_TIME , $ this -> config -> get ( 'translatable.full_locales.' . $ locale , null ) ) ; Carbon :: setLocale ( $ locale ) ; }
docstring: Sets the time locale
  
  @param string $locale
  @return void
docstring_tokens: Sets the time locale