Zory dcdfcf7578 0720-0127-h01 2 tygodni temu
..
Catalogue dcdfcf7578 0720-0127-h01 2 tygodni temu
Command dcdfcf7578 0720-0127-h01 2 tygodni temu
DataCollector dcdfcf7578 0720-0127-h01 2 tygodni temu
DependencyInjection dcdfcf7578 0720-0127-h01 2 tygodni temu
Dumper dcdfcf7578 0720-0127-h01 2 tygodni temu
Exception dcdfcf7578 0720-0127-h01 2 tygodni temu
Extractor dcdfcf7578 0720-0127-h01 2 tygodni temu
Formatter dcdfcf7578 0720-0127-h01 2 tygodni temu
Loader dcdfcf7578 0720-0127-h01 2 tygodni temu
Provider dcdfcf7578 0720-0127-h01 2 tygodni temu
Reader dcdfcf7578 0720-0127-h01 2 tygodni temu
Resources dcdfcf7578 0720-0127-h01 2 tygodni temu
Test dcdfcf7578 0720-0127-h01 2 tygodni temu
Util dcdfcf7578 0720-0127-h01 2 tygodni temu
Writer dcdfcf7578 0720-0127-h01 2 tygodni temu
CHANGELOG.md dcdfcf7578 0720-0127-h01 2 tygodni temu
CatalogueMetadataAwareInterface.php dcdfcf7578 0720-0127-h01 2 tygodni temu
DataCollectorTranslator.php dcdfcf7578 0720-0127-h01 2 tygodni temu
IdentityTranslator.php dcdfcf7578 0720-0127-h01 2 tygodni temu
LICENSE dcdfcf7578 0720-0127-h01 2 tygodni temu
LocaleSwitcher.php dcdfcf7578 0720-0127-h01 2 tygodni temu
LoggingTranslator.php dcdfcf7578 0720-0127-h01 2 tygodni temu
MessageCatalogue.php dcdfcf7578 0720-0127-h01 2 tygodni temu
MessageCatalogueInterface.php dcdfcf7578 0720-0127-h01 2 tygodni temu
MetadataAwareInterface.php dcdfcf7578 0720-0127-h01 2 tygodni temu
PseudoLocalizationTranslator.php dcdfcf7578 0720-0127-h01 2 tygodni temu
README.md dcdfcf7578 0720-0127-h01 2 tygodni temu
StaticMessage.php dcdfcf7578 0720-0127-h01 2 tygodni temu
TranslatableMessage.php dcdfcf7578 0720-0127-h01 2 tygodni temu
Translator.php dcdfcf7578 0720-0127-h01 2 tygodni temu
TranslatorBag.php dcdfcf7578 0720-0127-h01 2 tygodni temu
TranslatorBagInterface.php dcdfcf7578 0720-0127-h01 2 tygodni temu
composer.json dcdfcf7578 0720-0127-h01 2 tygodni 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 ! »

Sponsor

Help Symfony by sponsoring its development!

Resources