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