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

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