code: public static function get($key, $params = [])
      {
          if (empty(self::$message)) {
              self::setLanguage('en');
          }
  
          $rs = isset(self::$message[$key]) ? self::$message[$key] : $key;
  
          $names = array_Keys($params);
          $names = array_map('\PhalApi\Foundation\Translator::formatVar', $names);
  
          return str_replace($names, array_values($params), $rs);
      }
docs: 获取翻译
  
  @param string $key 翻译的内容
  @param array $params 动态参数
  @return mixed