src/Core/Localization.php
public function get($line_name, $language = null, array $params = [])
    {
        $params_temp = [];
        foreach ($params as $param_name => $param) {
            $params_temp[':' . $param_name . ':'] = $param;
        }
        unset($param);

        if (isset($this->lines[$language][$line_name])) {
            return strtr($this->lines[$language][$line_name], $params_temp);
        } elseif (isset($this->lines[$this->default_language][$line_name])) {
            return strtr($this->lines[$this->default_language][$line_name], $params_temp);
        } else {
            throw new \RuntimeException('Don`t find language line');
        }
    }
public function get($line_name, $language = null, array $params = [])
    {
        $params_temp = [];
        foreach ($params as $param_name => $param) {
            $params_temp[':' . $param_name . ':'] = $param;
        }
        unset($param);

        if (isset($this->lines[$language][$line_name])) {
            return strtr($this->lines[$language][$line_name], $params_temp);
        } elseif (isset($this->lines[$this->default_language][$line_name])) {
            return strtr($this->lines[$this->default_language][$line_name], $params_temp);
        } else {
            throw new \RuntimeException('Don`t find language line');
        }
    }
@param string $line_name
@param string $language
@param array $params

@return string

@throws \RuntimeException