public function get($name, $search = [], $replace = [])
{
if (!isset($this->texts[$this->lang][$name])) {
if ($this->lang !== "en" and isset($this->texts["en"][$name])) {
return $this->texts["en"][$name];
} else {
return $name;
}
} elseif (count($search) > 0) {
return str_replace($search, $replace, $this->texts[$this->lang][$name]);
} else {
return $this->texts[$this->lang][$name];
}
}