ss 394472f036 init 11 ay önce
..
Catalogue 394472f036 init 11 ay önce
Command 394472f036 init 11 ay önce
DataCollector 394472f036 init 11 ay önce
DependencyInjection 394472f036 init 11 ay önce
Dumper 394472f036 init 11 ay önce
Exception 394472f036 init 11 ay önce
Extractor 394472f036 init 11 ay önce
Formatter 394472f036 init 11 ay önce
Loader 394472f036 init 11 ay önce
Reader 394472f036 init 11 ay önce
Resources 394472f036 init 11 ay önce
Util 394472f036 init 11 ay önce
Writer 394472f036 init 11 ay önce
CHANGELOG.md 394472f036 init 11 ay önce
DataCollectorTranslator.php 394472f036 init 11 ay önce
IdentityTranslator.php 394472f036 init 11 ay önce
Interval.php 394472f036 init 11 ay önce
LICENSE 394472f036 init 11 ay önce
LoggingTranslator.php 394472f036 init 11 ay önce
MessageCatalogue.php 394472f036 init 11 ay önce
MessageCatalogueInterface.php 394472f036 init 11 ay önce
MessageSelector.php 394472f036 init 11 ay önce
MetadataAwareInterface.php 394472f036 init 11 ay önce
PluralizationRules.php 394472f036 init 11 ay önce
README.md 394472f036 init 11 ay önce
Translator.php 394472f036 init 11 ay önce
TranslatorBagInterface.php 394472f036 init 11 ay önce
TranslatorInterface.php 394472f036 init 11 ay önce
composer.json 394472f036 init 11 ay önce

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 ! »

Resources