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));
        }
    }
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));
        }
    }
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 ) ) ; } }
Translate a element
@param array $params
@param string $content
@param $smarty
@param $repeat
@return mixed
Translate a element