I18n::translation()
Returns the current or any other translation by locale. If the translation does not exist yet, the loader will try to load it, if defined.
I18n::translation(string|null $locale = null): array
Parameters
Name | Type | Default |
---|---|---|
$locale | string ornull |
null
|
Return type
array