src/Template/Blocks/Block.php
public function translate($key, $defaultValue = '', $locale = null) {
		return $this->translation->translate($key, $defaultValue, $locale);
	}
public function translate($key, $defaultValue = '', $locale = null) {
		return $this->translation->translate($key, $defaultValue, $locale);
	}
public function translate ( $ key , $ defaultValue = '' , $ locale = null ) { return $ this -> translation -> translate ( $ key , $ defaultValue , $ locale ) ; }
Helper function for translation.

@param string $key
@param string $defaultValue
@param string $locale
@return string
Helper function for translation .