Sen descrición

server 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
..
Catalogue 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Command 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
DataCollector 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
DependencyInjection 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Dumper 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Exception 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Extractor 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Formatter 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Loader 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Reader 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Resources 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Util 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Writer 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
CHANGELOG.md 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
DataCollectorTranslator.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
IdentityTranslator.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Interval.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
LICENSE 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
LoggingTranslator.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
MessageCatalogue.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
MessageCatalogueInterface.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
MessageSelector.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
MetadataAwareInterface.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
PluralizationRules.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
README.md 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
Translator.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
TranslatorBagInterface.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
TranslatorInterface.php 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos
composer.json 52763dedf1 gitignore %!s(int64=2) %!d(string=hai) anos

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