yangkangwei cbf378a57b first пре 1 година
..
Catalogue cbf378a57b first пре 1 година
Command cbf378a57b first пре 1 година
DataCollector cbf378a57b first пре 1 година
DependencyInjection cbf378a57b first пре 1 година
Dumper cbf378a57b first пре 1 година
Exception cbf378a57b first пре 1 година
Extractor cbf378a57b first пре 1 година
Formatter cbf378a57b first пре 1 година
Loader cbf378a57b first пре 1 година
Reader cbf378a57b first пре 1 година
Resources cbf378a57b first пре 1 година
Util cbf378a57b first пре 1 година
Writer cbf378a57b first пре 1 година
CHANGELOG.md cbf378a57b first пре 1 година
DataCollectorTranslator.php cbf378a57b first пре 1 година
IdentityTranslator.php cbf378a57b first пре 1 година
Interval.php cbf378a57b first пре 1 година
LICENSE cbf378a57b first пре 1 година
LoggingTranslator.php cbf378a57b first пре 1 година
MessageCatalogue.php cbf378a57b first пре 1 година
MessageCatalogueInterface.php cbf378a57b first пре 1 година
MessageSelector.php cbf378a57b first пре 1 година
MetadataAwareInterface.php cbf378a57b first пре 1 година
PluralizationRules.php cbf378a57b first пре 1 година
README.md cbf378a57b first пре 1 година
Translator.php cbf378a57b first пре 1 година
TranslatorBagInterface.php cbf378a57b first пре 1 година
TranslatorInterface.php cbf378a57b first пре 1 година

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