Catalogue
2 years ago
Command
2 years ago
DataCollector
2 years ago
DependencyInjection
2 years ago
Dumper
2 years ago
Exception
2 years ago
Extractor
2 years ago
Formatter
2 years ago
Loader
2 years ago
Provider
2 years ago
Reader
2 years ago
Resources
2 years ago
Test
2 years ago
Util
2 years ago
Writer
2 years ago
DataCollectorTranslator.php
2 years ago
IdentityTranslator.php
2 years ago
LoggingTranslator.php
2 years ago
MessageCatalogue.php
2 years ago
MessageCatalogueInterface.php
2 years ago
MetadataAwareInterface.php
2 years ago
PseudoLocalizationTranslator.php
2 years ago
TranslatableMessage.php
2 years ago
Translator.php
2 years ago
TranslatorBag.php
2 years ago
TranslatorBagInterface.php
2 years ago
TranslatorBagInterface.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace IAWPSCOPED\Symfony\Component\Translation; |
| 12 | |
| 13 | use IAWPSCOPED\Symfony\Component\Translation\Exception\InvalidArgumentException; |
| 14 | /** |
| 15 | * TranslatorBagInterface. |
| 16 | * |
| 17 | * @method MessageCatalogueInterface[] getCatalogues() Returns all catalogues of the instance |
| 18 | * |
| 19 | * @author Abdellatif Ait boudad <a.aitboudad@gmail.com> |
| 20 | * @internal |
| 21 | */ |
| 22 | interface TranslatorBagInterface |
| 23 | { |
| 24 | /** |
| 25 | * Gets the catalogue by locale. |
| 26 | * |
| 27 | * @param string|null $locale The locale or null to use the default |
| 28 | * |
| 29 | * @return MessageCatalogueInterface |
| 30 | * |
| 31 | * @throws InvalidArgumentException If the locale contains invalid characters |
| 32 | */ |
| 33 | public function getCatalogue(?string $locale = null); |
| 34 | } |
| 35 |