Function t
Translates a string to the current language or to a given language.
The native string language is supposed to be english (en).
Note: Calls to this function are forwarded to Helpers::t.
Namespace: Brickrouge
See:
Located at vendor/brickrouge/brickrouge/lib/helpers.php
See:
ICanBoogie\I18n\Translator
Located at vendor/brickrouge/brickrouge/lib/helpers.php
Parameters summary
string |
$str |
The native string to translate. |
array |
$args = array() |
An array of replacements to make after the translation. The replacement is
handled by the Brickrouge\format() function.
|
array |
$options = array() |
An array of additional options, with the following elements: - 'default': The default string to use if the translation failed. - 'scope': The scope of the translation. |
Return value summary
mixed
|