src/mako/i18n/I18n.php
public function get(string $key, array $vars = [], ?string $language = null): string
	{
		[$file, $string] = $this->parseKey($key);

		if($string === null)
		{
			return $key;
		}

		$string = Arr::get($this->getStrings($language ?? $this->language, $file), $string, $key);

		if(!empty($vars))
		{
			$string = vsprintf($string, $vars);

			if(stripos($string, '</') !== false)
			{
				$string = $this->parseTags($string);
			}
		}

		return $string;
	}
public function get(string $key, array $vars = [], ?string $language = null): string
	{
		[$file, $string] = $this->parseKey($key);

		if($string === null)
		{
			return $key;
		}

		$string = Arr::get($this->getStrings($language ?? $this->language, $file), $string, $key);

		if(!empty($vars))
		{
			$string = vsprintf($string, $vars);

			if(stripos($string, '</') !== false)
			{
				$string = $this->parseTags($string);
			}
		}

		return $string;
	}
public function get ( string $ key , array $ vars = [ ] , ? string $ language = null ) : string { [ $ file , $ string ] = $ this -> parseKey ( $ key ) ; if ( $ string === null ) { return $ key ; } $ string = Arr :: get ( $ this -> getStrings ( $ language ?? $ this -> language , $ file ) , $ string , $ key ) ; if ( ! empty ( $ vars ) ) { $ string = vsprintf ( $ string , $ vars ) ; if ( stripos ( $ string , '</' ) !== false ) { $ string = $ this -> parseTags ( $ string ) ; } } return $ string ; }
Returns the chosen string from the current language.

@param  string      $key      String to translate
@param  array       $vars     Array of values to replace in the translated text
@param  string|null $language Name of the language pack
@return string
Returns the chosen string from the current language .