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;
15 * TranslatorBagInterface.
17 * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
19 interface TranslatorBagInterface
22 * Gets the catalogue by locale.
24 * @param string|null $locale The locale or null to use the default
26 * @return MessageCatalogueInterface
28 * @throws \InvalidArgumentException If the locale contains invalid characters
30 public function getCatalogue($locale = null);