ss d581d78eb7 初始化 8 ay önce
..
Catalogue d581d78eb7 初始化 8 ay önce
Command d581d78eb7 初始化 8 ay önce
DataCollector d581d78eb7 初始化 8 ay önce
DependencyInjection d581d78eb7 初始化 8 ay önce
Dumper d581d78eb7 初始化 8 ay önce
Exception d581d78eb7 初始化 8 ay önce
Extractor d581d78eb7 初始化 8 ay önce
Formatter d581d78eb7 初始化 8 ay önce
Loader d581d78eb7 初始化 8 ay önce
Reader d581d78eb7 初始化 8 ay önce
Resources d581d78eb7 初始化 8 ay önce
Util d581d78eb7 初始化 8 ay önce
Writer d581d78eb7 初始化 8 ay önce
CHANGELOG.md d581d78eb7 初始化 8 ay önce
DataCollectorTranslator.php d581d78eb7 初始化 8 ay önce
IdentityTranslator.php d581d78eb7 初始化 8 ay önce
Interval.php d581d78eb7 初始化 8 ay önce
LICENSE d581d78eb7 初始化 8 ay önce
LoggingTranslator.php d581d78eb7 初始化 8 ay önce
MessageCatalogue.php d581d78eb7 初始化 8 ay önce
MessageCatalogueInterface.php d581d78eb7 初始化 8 ay önce
MessageSelector.php d581d78eb7 初始化 8 ay önce
MetadataAwareInterface.php d581d78eb7 初始化 8 ay önce
PluralizationRules.php d581d78eb7 初始化 8 ay önce
README.md d581d78eb7 初始化 8 ay önce
Translator.php d581d78eb7 初始化 8 ay önce
TranslatorBagInterface.php d581d78eb7 初始化 8 ay önce
TranslatorInterface.php d581d78eb7 初始化 8 ay önce
composer.json d581d78eb7 初始化 8 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 ! »

Resources