刘远航 94eefae904 vendor 4 vuotta sitten
..
Catalogue 94eefae904 vendor 4 vuotta sitten
Command 94eefae904 vendor 4 vuotta sitten
DataCollector 94eefae904 vendor 4 vuotta sitten
DependencyInjection 94eefae904 vendor 4 vuotta sitten
Dumper 94eefae904 vendor 4 vuotta sitten
Exception 94eefae904 vendor 4 vuotta sitten
Extractor 94eefae904 vendor 4 vuotta sitten
Formatter 94eefae904 vendor 4 vuotta sitten
Loader 94eefae904 vendor 4 vuotta sitten
Reader 94eefae904 vendor 4 vuotta sitten
Resources 94eefae904 vendor 4 vuotta sitten
Util 94eefae904 vendor 4 vuotta sitten
Writer 94eefae904 vendor 4 vuotta sitten
CHANGELOG.md 94eefae904 vendor 4 vuotta sitten
DataCollectorTranslator.php 94eefae904 vendor 4 vuotta sitten
IdentityTranslator.php 94eefae904 vendor 4 vuotta sitten
Interval.php 94eefae904 vendor 4 vuotta sitten
LICENSE 94eefae904 vendor 4 vuotta sitten
LoggingTranslator.php 94eefae904 vendor 4 vuotta sitten
MessageCatalogue.php 94eefae904 vendor 4 vuotta sitten
MessageCatalogueInterface.php 94eefae904 vendor 4 vuotta sitten
MessageSelector.php 94eefae904 vendor 4 vuotta sitten
MetadataAwareInterface.php 94eefae904 vendor 4 vuotta sitten
PluralizationRules.php 94eefae904 vendor 4 vuotta sitten
README.md 94eefae904 vendor 4 vuotta sitten
Translator.php 94eefae904 vendor 4 vuotta sitten
TranslatorBagInterface.php 94eefae904 vendor 4 vuotta sitten
TranslatorInterface.php 94eefae904 vendor 4 vuotta sitten
composer.json 94eefae904 vendor 4 vuotta sitten

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