刘远航 94eefae904 vendor hace 4 años
..
Catalogue 94eefae904 vendor hace 4 años
Command 94eefae904 vendor hace 4 años
DataCollector 94eefae904 vendor hace 4 años
DependencyInjection 94eefae904 vendor hace 4 años
Dumper 94eefae904 vendor hace 4 años
Exception 94eefae904 vendor hace 4 años
Extractor 94eefae904 vendor hace 4 años
Formatter 94eefae904 vendor hace 4 años
Loader 94eefae904 vendor hace 4 años
Reader 94eefae904 vendor hace 4 años
Resources 94eefae904 vendor hace 4 años
Util 94eefae904 vendor hace 4 años
Writer 94eefae904 vendor hace 4 años
CHANGELOG.md 94eefae904 vendor hace 4 años
DataCollectorTranslator.php 94eefae904 vendor hace 4 años
IdentityTranslator.php 94eefae904 vendor hace 4 años
Interval.php 94eefae904 vendor hace 4 años
LICENSE 94eefae904 vendor hace 4 años
LoggingTranslator.php 94eefae904 vendor hace 4 años
MessageCatalogue.php 94eefae904 vendor hace 4 años
MessageCatalogueInterface.php 94eefae904 vendor hace 4 años
MessageSelector.php 94eefae904 vendor hace 4 años
MetadataAwareInterface.php 94eefae904 vendor hace 4 años
PluralizationRules.php 94eefae904 vendor hace 4 años
README.md 94eefae904 vendor hace 4 años
Translator.php 94eefae904 vendor hace 4 años
TranslatorBagInterface.php 94eefae904 vendor hace 4 años
TranslatorInterface.php 94eefae904 vendor hace 4 años
composer.json 94eefae904 vendor hace 4 años

README.md

Translation Component

The Translation component provides tools to internationalize your application.

Getting Started

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

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

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

Resources