Zory fd28254f11 交付版本 il y a 2 semaines
..
Catalogue fd28254f11 交付版本 il y a 2 semaines
Command fd28254f11 交付版本 il y a 2 semaines
DataCollector fd28254f11 交付版本 il y a 2 semaines
DependencyInjection fd28254f11 交付版本 il y a 2 semaines
Dumper fd28254f11 交付版本 il y a 2 semaines
Exception fd28254f11 交付版本 il y a 2 semaines
Extractor fd28254f11 交付版本 il y a 2 semaines
Formatter fd28254f11 交付版本 il y a 2 semaines
Loader fd28254f11 交付版本 il y a 2 semaines
Provider fd28254f11 交付版本 il y a 2 semaines
Reader fd28254f11 交付版本 il y a 2 semaines
Resources fd28254f11 交付版本 il y a 2 semaines
Test fd28254f11 交付版本 il y a 2 semaines
Util fd28254f11 交付版本 il y a 2 semaines
Writer fd28254f11 交付版本 il y a 2 semaines
CHANGELOG.md fd28254f11 交付版本 il y a 2 semaines
CatalogueMetadataAwareInterface.php fd28254f11 交付版本 il y a 2 semaines
DataCollectorTranslator.php fd28254f11 交付版本 il y a 2 semaines
IdentityTranslator.php fd28254f11 交付版本 il y a 2 semaines
LICENSE fd28254f11 交付版本 il y a 2 semaines
LocaleSwitcher.php fd28254f11 交付版本 il y a 2 semaines
LoggingTranslator.php fd28254f11 交付版本 il y a 2 semaines
MessageCatalogue.php fd28254f11 交付版本 il y a 2 semaines
MessageCatalogueInterface.php fd28254f11 交付版本 il y a 2 semaines
MetadataAwareInterface.php fd28254f11 交付版本 il y a 2 semaines
PseudoLocalizationTranslator.php fd28254f11 交付版本 il y a 2 semaines
README.md fd28254f11 交付版本 il y a 2 semaines
StaticMessage.php fd28254f11 交付版本 il y a 2 semaines
TranslatableMessage.php fd28254f11 交付版本 il y a 2 semaines
Translator.php fd28254f11 交付版本 il y a 2 semaines
TranslatorBag.php fd28254f11 交付版本 il y a 2 semaines
TranslatorBagInterface.php fd28254f11 交付版本 il y a 2 semaines
composer.json fd28254f11 交付版本 il y a 2 semaines

README.md

Translation Component

The Translation component provides tools to internationalize your application.

Getting Started

composer require symfony/translation
use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\Loader\ArrayLoader;

$translator = new Translator('fr_FR');
$translator->addLoader('array', new ArrayLoader());
$translator->addResource('array', [
    'Hello World!' => 'Bonjour !',
], 'fr_FR');

echo $translator->trans('Hello World!'); // outputs « Bonjour ! »

Sponsor

Help Symfony by sponsoring its development!

Resources