Zory dcdfcf7578 0720-0127-h01 3 bulan lalu
..
Catalogue dcdfcf7578 0720-0127-h01 3 bulan lalu
Command dcdfcf7578 0720-0127-h01 3 bulan lalu
DataCollector dcdfcf7578 0720-0127-h01 3 bulan lalu
DependencyInjection dcdfcf7578 0720-0127-h01 3 bulan lalu
Dumper dcdfcf7578 0720-0127-h01 3 bulan lalu
Exception dcdfcf7578 0720-0127-h01 3 bulan lalu
Extractor dcdfcf7578 0720-0127-h01 3 bulan lalu
Formatter dcdfcf7578 0720-0127-h01 3 bulan lalu
Loader dcdfcf7578 0720-0127-h01 3 bulan lalu
Provider dcdfcf7578 0720-0127-h01 3 bulan lalu
Reader dcdfcf7578 0720-0127-h01 3 bulan lalu
Resources dcdfcf7578 0720-0127-h01 3 bulan lalu
Test dcdfcf7578 0720-0127-h01 3 bulan lalu
Util dcdfcf7578 0720-0127-h01 3 bulan lalu
Writer dcdfcf7578 0720-0127-h01 3 bulan lalu
CHANGELOG.md dcdfcf7578 0720-0127-h01 3 bulan lalu
CatalogueMetadataAwareInterface.php dcdfcf7578 0720-0127-h01 3 bulan lalu
DataCollectorTranslator.php dcdfcf7578 0720-0127-h01 3 bulan lalu
IdentityTranslator.php dcdfcf7578 0720-0127-h01 3 bulan lalu
LICENSE dcdfcf7578 0720-0127-h01 3 bulan lalu
LocaleSwitcher.php dcdfcf7578 0720-0127-h01 3 bulan lalu
LoggingTranslator.php dcdfcf7578 0720-0127-h01 3 bulan lalu
MessageCatalogue.php dcdfcf7578 0720-0127-h01 3 bulan lalu
MessageCatalogueInterface.php dcdfcf7578 0720-0127-h01 3 bulan lalu
MetadataAwareInterface.php dcdfcf7578 0720-0127-h01 3 bulan lalu
PseudoLocalizationTranslator.php dcdfcf7578 0720-0127-h01 3 bulan lalu
README.md dcdfcf7578 0720-0127-h01 3 bulan lalu
StaticMessage.php dcdfcf7578 0720-0127-h01 3 bulan lalu
TranslatableMessage.php dcdfcf7578 0720-0127-h01 3 bulan lalu
Translator.php dcdfcf7578 0720-0127-h01 3 bulan lalu
TranslatorBag.php dcdfcf7578 0720-0127-h01 3 bulan lalu
TranslatorBagInterface.php dcdfcf7578 0720-0127-h01 3 bulan lalu
composer.json dcdfcf7578 0720-0127-h01 3 bulan lalu

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