src/i18n/I18N.php
public function translate(string $category, string $message, array $params = [], string $language = null)
    {
        return $this->translator->translate($category, $message, $params, $language ?: (string)$this->locale);
    }
public function translate(string $category, string $message, array $params = [], string $language = null)
    {
        return $this->translator->translate($category, $message, $params, $language ?: (string)$this->locale);
    }
public function translate ( string $ category , string $ message , array $ params = [ ] , string $ language = null ) { return $ this -> translator -> translate ( $ category , $ message , $ params , $ language ? : ( string ) $ this -> locale ) ; }
Translates a message to the specified language.
Drops in the current locale when language is not given.
@see Translator::translate()
Translates a message to the specified language . Drops in the current locale when language is not given .