You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
1748153932 04fb71596e 111 1 year ago
..
Catalogue 111 1 year ago
Command 111 1 year ago
DataCollector 111 1 year ago
DependencyInjection 111 1 year ago
Dumper 111 1 year ago
Exception 111 1 year ago
Extractor 111 1 year ago
Formatter 111 1 year ago
Loader 111 1 year ago
Reader 111 1 year ago
Resources 111 1 year ago
Util 111 1 year ago
Writer 111 1 year ago
.gitattributes 111 1 year ago
CHANGELOG.md 111 1 year ago
DataCollectorTranslator.php 111 1 year ago
IdentityTranslator.php 111 1 year ago
LICENSE 111 1 year ago
LoggingTranslator.php 111 1 year ago
MessageCatalogue.php 111 1 year ago
MessageCatalogueInterface.php 111 1 year ago
MetadataAwareInterface.php 111 1 year ago
README.md 111 1 year ago
Translator.php 111 1 year ago
TranslatorBagInterface.php 111 1 year ago
composer.json 111 1 year ago

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