Symfony\Component\Translation\Loader\LoaderInterface::load
Loads a locale.
Signature
public function load(mixed
$resource,
[string
$locale = 'messages',
[string
$domain = 'messages']] )
Parameters
$resource
— mixed- A resource
$locale
— string- A locale
$domain
— string- The domain
Returns
- MessageCatalogue
- A MessageCatalogue instance
Errors/Exceptions
-
NotFoundResourceException
- when the resource cannot be found
-
InvalidResourceException
- when the resource cannot be loaded