Kirin 80169d6661 first hace 4 años
..
Catalogue 80169d6661 first hace 4 años
Command 80169d6661 first hace 4 años
DataCollector 80169d6661 first hace 4 años
DependencyInjection 80169d6661 first hace 4 años
Dumper 80169d6661 first hace 4 años
Exception 80169d6661 first hace 4 años
Extractor 80169d6661 first hace 4 años
Formatter 80169d6661 first hace 4 años
Loader 80169d6661 first hace 4 años
Reader 80169d6661 first hace 4 años
Resources 80169d6661 first hace 4 años
Util 80169d6661 first hace 4 años
Writer 80169d6661 first hace 4 años
.gitattributes 80169d6661 first hace 4 años
CHANGELOG.md 80169d6661 first hace 4 años
DataCollectorTranslator.php 80169d6661 first hace 4 años
IdentityTranslator.php 80169d6661 first hace 4 años
LICENSE 80169d6661 first hace 4 años
LoggingTranslator.php 80169d6661 first hace 4 años
MessageCatalogue.php 80169d6661 first hace 4 años
MessageCatalogueInterface.php 80169d6661 first hace 4 años
MetadataAwareInterface.php 80169d6661 first hace 4 años
README.md 80169d6661 first hace 4 años
Translator.php 80169d6661 first hace 4 años
TranslatorBagInterface.php 80169d6661 first hace 4 años
composer.json 80169d6661 first 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