core/Lang.class.php
public static final function get(string $identify, string $package, Array $data = null): string {
    $text = $identify;
    if (!empty($identify)) {
      if ($language = Lang::loadPackage($package)) {
        if (isset($language->{$identify})) {
          $text = Lang::replace($language->{$identify}, $data);
        }
      }
    }
    return $text;
  }
public static final function get(string $identify, string $package, Array $data = null): string {
    $text = $identify;
    if (!empty($identify)) {
      if ($language = Lang::loadPackage($package)) {
        if (isset($language->{$identify})) {
          $text = Lang::replace($language->{$identify}, $data);
        }
      }
    }
    return $text;
  }
public static final function get ( string $ identify , string $ package , Array $ data = null ) : string { $ text = $ identify ; if ( ! empty ( $ identify ) ) { if ( $ language = Lang :: loadPackage ( $ package ) ) { if ( isset ( $ language -> { $ identify } ) ) { $ text = Lang :: replace ( $ language -> { $ identify } , $ data ) ; } } } return $ text ; }
- Identify TAG and package, and return text
@param string $identify TAG identify language
@param string $package Package language
@param Array $data Data repalce language
@return null
- Identify TAG and package and return text