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

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