唐金木 07e2592bdb first commit пре 4 година
..
Catalogue 07e2592bdb first commit пре 4 година
Command 07e2592bdb first commit пре 4 година
DataCollector 07e2592bdb first commit пре 4 година
DependencyInjection 07e2592bdb first commit пре 4 година
Dumper 07e2592bdb first commit пре 4 година
Exception 07e2592bdb first commit пре 4 година
Extractor 07e2592bdb first commit пре 4 година
Formatter 07e2592bdb first commit пре 4 година
Loader 07e2592bdb first commit пре 4 година
Reader 07e2592bdb first commit пре 4 година
Resources 07e2592bdb first commit пре 4 година
Util 07e2592bdb first commit пре 4 година
Writer 07e2592bdb first commit пре 4 година
.gitattributes 07e2592bdb first commit пре 4 година
CHANGELOG.md 07e2592bdb first commit пре 4 година
DataCollectorTranslator.php 07e2592bdb first commit пре 4 година
IdentityTranslator.php 07e2592bdb first commit пре 4 година
LICENSE 07e2592bdb first commit пре 4 година
LoggingTranslator.php 07e2592bdb first commit пре 4 година
MessageCatalogue.php 07e2592bdb first commit пре 4 година
MessageCatalogueInterface.php 07e2592bdb first commit пре 4 година
MetadataAwareInterface.php 07e2592bdb first commit пре 4 година
README.md 07e2592bdb first commit пре 4 година
Translator.php 07e2592bdb first commit пре 4 година
TranslatorBagInterface.php 07e2592bdb first commit пре 4 година
composer.json 07e2592bdb first commit пре 4 година

README.md

Translation Component

The Translation component provides tools to internationalize your application.

Getting Started

$ composer require symfony/translation
use Symfony\Component\Translation\Translator;

$translator = new Translator('fr_FR');
$translator->addResource('array', [
    'Hello World!' => 'Bonjour !',
], 'fr_FR');

echo $translator->trans('Hello World!'); // outputs « Bonjour ! »

Resources