final public static function translate(array $params, string $content = null)
    {
        if (!FEnv::isset("framework.smarty.called")) {
            FEnv::set("framework.smarty.called", 1);
        }

        if (isset($content)) {
            $locale = Locale::getInstance();
            return ($locale->trans($content, $params['lang'] ?? null));
        }
    }