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

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