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