rkljw aca9e4998b 1 6 ay önce
..
Catalogue aca9e4998b 1 6 ay önce
Command aca9e4998b 1 6 ay önce
DataCollector aca9e4998b 1 6 ay önce
DependencyInjection aca9e4998b 1 6 ay önce
Dumper aca9e4998b 1 6 ay önce
Exception aca9e4998b 1 6 ay önce
Extractor aca9e4998b 1 6 ay önce
Formatter aca9e4998b 1 6 ay önce
Loader aca9e4998b 1 6 ay önce
Provider aca9e4998b 1 6 ay önce
Reader aca9e4998b 1 6 ay önce
Resources aca9e4998b 1 6 ay önce
Test aca9e4998b 1 6 ay önce
Util aca9e4998b 1 6 ay önce
Writer aca9e4998b 1 6 ay önce
CHANGELOG.md aca9e4998b 1 6 ay önce
CatalogueMetadataAwareInterface.php aca9e4998b 1 6 ay önce
DataCollectorTranslator.php aca9e4998b 1 6 ay önce
IdentityTranslator.php aca9e4998b 1 6 ay önce
LICENSE aca9e4998b 1 6 ay önce
LocaleSwitcher.php aca9e4998b 1 6 ay önce
LoggingTranslator.php aca9e4998b 1 6 ay önce
MessageCatalogue.php aca9e4998b 1 6 ay önce
MessageCatalogueInterface.php aca9e4998b 1 6 ay önce
MetadataAwareInterface.php aca9e4998b 1 6 ay önce
PseudoLocalizationTranslator.php aca9e4998b 1 6 ay önce
README.md aca9e4998b 1 6 ay önce
TranslatableMessage.php aca9e4998b 1 6 ay önce
Translator.php aca9e4998b 1 6 ay önce
TranslatorBag.php aca9e4998b 1 6 ay önce
TranslatorBagInterface.php aca9e4998b 1 6 ay önce
composer.json aca9e4998b 1 6 ay ö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