I18n::translate()
Translates either a given i18n key from global translations or chooses correct entry from array of translations according to the currently set locale
Parameters
Name | Type | Default |
---|---|---|
$key * | array |string |null |
– |
$fallback | array |string |null |
null |
$locale | string |null |
null |
Return type
Closure
|array
|string
|null