wangxiaodong eecb2025d4 1 3 years ago
..
Catalogue eecb2025d4 1 3 years ago
Command eecb2025d4 1 3 years ago
DataCollector eecb2025d4 1 3 years ago
DependencyInjection eecb2025d4 1 3 years ago
Dumper eecb2025d4 1 3 years ago
Exception eecb2025d4 1 3 years ago
Extractor eecb2025d4 1 3 years ago
Formatter eecb2025d4 1 3 years ago
Loader eecb2025d4 1 3 years ago
Reader eecb2025d4 1 3 years ago
Resources eecb2025d4 1 3 years ago
Util eecb2025d4 1 3 years ago
Writer eecb2025d4 1 3 years ago
.gitattributes eecb2025d4 1 3 years ago
CHANGELOG.md eecb2025d4 1 3 years ago
DataCollectorTranslator.php eecb2025d4 1 3 years ago
IdentityTranslator.php eecb2025d4 1 3 years ago
Interval.php eecb2025d4 1 3 years ago
LICENSE eecb2025d4 1 3 years ago
LoggingTranslator.php eecb2025d4 1 3 years ago
MessageCatalogue.php eecb2025d4 1 3 years ago
MessageCatalogueInterface.php eecb2025d4 1 3 years ago
MessageSelector.php eecb2025d4 1 3 years ago
MetadataAwareInterface.php eecb2025d4 1 3 years ago
PluralizationRules.php eecb2025d4 1 3 years ago
README.md eecb2025d4 1 3 years ago
Translator.php eecb2025d4 1 3 years ago
TranslatorBagInterface.php eecb2025d4 1 3 years ago
TranslatorInterface.php eecb2025d4 1 3 years ago
composer.json eecb2025d4 1 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