Kirin 80169d6661 first 3 éve
..
Catalogue 80169d6661 first 3 éve
Command 80169d6661 first 3 éve
DataCollector 80169d6661 first 3 éve
DependencyInjection 80169d6661 first 3 éve
Dumper 80169d6661 first 3 éve
Exception 80169d6661 first 3 éve
Extractor 80169d6661 first 3 éve
Formatter 80169d6661 first 3 éve
Loader 80169d6661 first 3 éve
Reader 80169d6661 first 3 éve
Resources 80169d6661 first 3 éve
Util 80169d6661 first 3 éve
Writer 80169d6661 first 3 éve
.gitattributes 80169d6661 first 3 éve
CHANGELOG.md 80169d6661 first 3 éve
DataCollectorTranslator.php 80169d6661 first 3 éve
IdentityTranslator.php 80169d6661 first 3 éve
LICENSE 80169d6661 first 3 éve
LoggingTranslator.php 80169d6661 first 3 éve
MessageCatalogue.php 80169d6661 first 3 éve
MessageCatalogueInterface.php 80169d6661 first 3 éve
MetadataAwareInterface.php 80169d6661 first 3 éve
README.md 80169d6661 first 3 éve
Translator.php 80169d6661 first 3 éve
TranslatorBagInterface.php 80169d6661 first 3 éve
composer.json 80169d6661 first 3 éve

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