I18n::translate()
Translates a given message according to the currently set locale
I18n::translate(string|array $key, string|array|null $fallback = null, string $locale = null): string|array|null
Parameters
Name | Type | Default |
---|---|---|
$key * | string |array |
– |
$fallback | string |array |null |
null |
$locale | string |
null |
Return type
string
|array
|null