core/Language/Lang.php
public function getProxy( string $context ): ThenProxy
	{
		if( isset($this->proxy[$context]) )
		{
			return $this->proxy[$context];
		}

		if( !$this->lang->load($context) )
		{
			throw new \InvalidArgumentException("Cannot load the '{$context}' language package");
		}

		$this->proxy[$context] = new ThenProxy($this, $context);
		return $this->proxy[$context];
	}
public function getProxy( string $context ): ThenProxy
	{
		if( isset($this->proxy[$context]) )
		{
			return $this->proxy[$context];
		}

		if( !$this->lang->load($context) )
		{
			throw new \InvalidArgumentException("Cannot load the '{$context}' language package");
		}

		$this->proxy[$context] = new ThenProxy($this, $context);
		return $this->proxy[$context];
	}
public function getProxy ( string $ context ) : ThenProxy { if ( isset ( $ this -> proxy [ $ context ] ) ) { return $ this -> proxy [ $ context ] ; } if ( ! $ this -> lang -> load ( $ context ) ) { throw new \ InvalidArgumentException ( "Cannot load the '{$context}' language package" ) ; } $ this -> proxy [ $ context ] = new ThenProxy ( $ this , $ context ) ; return $ this -> proxy [ $ context ] ; }
Get the language package proxy

@param string $context
@return ThenProxy
Get the language package proxy