planifibot/vendor/symfony/translation
Alejandro Tasistro b6c363c9f7 El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
..
Catalogue El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Command El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
DataCollector El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
DependencyInjection El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Dumper El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Exception El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Extractor El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Formatter El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Loader El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Provider El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Reader El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Resources El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Test El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Util El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Writer El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
CHANGELOG.md El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
DataCollectorTranslator.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
IdentityTranslator.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
LICENSE El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
LoggingTranslator.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
MessageCatalogue.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
MessageCatalogueInterface.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
MetadataAwareInterface.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
PseudoLocalizationTranslator.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
README.md El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
TranslatableMessage.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
Translator.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
TranslatorBag.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
TranslatorBagInterface.php El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00
composer.json El planifibot anda! + vendor 2021-10-21 13:42:36 -03:00

README.md

Translation Component

The Translation component provides tools to internationalize your application.

Getting Started

$ composer require symfony/translation
use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\Loader\ArrayLoader;

$translator = new Translator('fr_FR');
$translator->addLoader('array', new ArrayLoader());
$translator->addResource('array', [
    'Hello World!' => 'Bonjour !',
], 'fr_FR');

echo $translator->trans('Hello World!'); // outputs « Bonjour ! »

Resources