\Piko\I18n\Event\BeforeTranslateEvent

Event emitted before to translate a text

Properties summary

Name Description
public $domain The translation domain.
public $params The translation parameters used to substitute tran…
public $text The text to translate.

Methods summary

Name Description
public __construct Constructor

Properties

public $domain : string

The translation domain.

public $params : array<string,string>

The translation parameters used to substitute translation variables.

public $text : string|null

The text to translate.


Methods

public __construct(): mixed

public  __construct(string  $domain, string|null  $text, array&lt;string,string&gt;  $params): mixed

Parameters

$domain : The translation domain

$text : The text to translate

$params : The translation parameters used to substitute translation variables

Return:

mixed