Esempio n. 1
0
 /**
  * Get language code.
  *
  * If param $case is not set the result will be in LOWER case (e. g. "de") by default.
  *
  * @param string $case [optional] Convert value to case (Text::LOWER, Text::UPPER or Text::NONE)
  *
  * @return string
  */
 public function getLanguage($case = Text::NONE)
 {
     return Text::toCase(\Locale::getPrimaryLanguage($this->locale), $case);
 }