Brak opisu

server 52763dedf1 gitignore 2 lat temu
..
Catalogue 52763dedf1 gitignore 2 lat temu
Command 52763dedf1 gitignore 2 lat temu
DataCollector 52763dedf1 gitignore 2 lat temu
DependencyInjection 52763dedf1 gitignore 2 lat temu
Dumper 52763dedf1 gitignore 2 lat temu
Exception 52763dedf1 gitignore 2 lat temu
Extractor 52763dedf1 gitignore 2 lat temu
Formatter 52763dedf1 gitignore 2 lat temu
Loader 52763dedf1 gitignore 2 lat temu
Reader 52763dedf1 gitignore 2 lat temu
Resources 52763dedf1 gitignore 2 lat temu
Util 52763dedf1 gitignore 2 lat temu
Writer 52763dedf1 gitignore 2 lat temu
CHANGELOG.md 52763dedf1 gitignore 2 lat temu
DataCollectorTranslator.php 52763dedf1 gitignore 2 lat temu
IdentityTranslator.php 52763dedf1 gitignore 2 lat temu
Interval.php 52763dedf1 gitignore 2 lat temu
LICENSE 52763dedf1 gitignore 2 lat temu
LoggingTranslator.php 52763dedf1 gitignore 2 lat temu
MessageCatalogue.php 52763dedf1 gitignore 2 lat temu
MessageCatalogueInterface.php 52763dedf1 gitignore 2 lat temu
MessageSelector.php 52763dedf1 gitignore 2 lat temu
MetadataAwareInterface.php 52763dedf1 gitignore 2 lat temu
PluralizationRules.php 52763dedf1 gitignore 2 lat temu
README.md 52763dedf1 gitignore 2 lat temu
Translator.php 52763dedf1 gitignore 2 lat temu
TranslatorBagInterface.php 52763dedf1 gitignore 2 lat temu
TranslatorInterface.php 52763dedf1 gitignore 2 lat temu
composer.json 52763dedf1 gitignore 2 lat temu

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