interface TranslatorBagInterface

Methods

getCatalogue(string$locale =null)

Gets the catalogue by locale.

array
getCatalogues()

Returns all catalogues of the instance.

Details

MessageCatalogueInterface getCatalogue(string$locale =null)

Gets the catalogue by locale.

Parameters

string $locale The locale or null to use the default

Return Value

MessageCatalogueInterface

Exceptions

InvalidArgumentException If the locale contains invalid characters

array getCatalogues()

Returns all catalogues of the instance.

Return Value

array