4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Translation;
14 use Symfony\Component\Translation\Exception\InvalidArgumentException;
17 * TranslatorBagInterface.
19 * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
21 interface TranslatorBagInterface
24 * Gets the catalogue by locale.
26 * @param string|null $locale The locale or null to use the default
28 * @return MessageCatalogueInterface
30 * @throws InvalidArgumentException If the locale contains invalid characters
32 public function getCatalogue($locale = null);