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

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