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 12 months ago
..
Catalogue 111 12 months ago
Command 111 12 months ago
DataCollector 111 12 months ago
DependencyInjection 111 12 months ago
Dumper 111 12 months ago
Exception 111 12 months ago
Extractor 111 12 months ago
Formatter 111 12 months ago
Loader 111 12 months ago
Reader 111 12 months ago
Resources 111 12 months ago
Util 111 12 months ago
Writer 111 12 months ago
.gitattributes 111 12 months ago
CHANGELOG.md 111 12 months ago
DataCollectorTranslator.php 111 12 months ago
IdentityTranslator.php 111 12 months ago
LICENSE 111 12 months ago
LoggingTranslator.php 111 12 months ago
MessageCatalogue.php 111 12 months ago
MessageCatalogueInterface.php 111 12 months ago
MetadataAwareInterface.php 111 12 months ago
README.md 111 12 months ago
Translator.php 111 12 months ago
TranslatorBagInterface.php 111 12 months ago
composer.json 111 12 months 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