Kirin 80169d6661 first 3 gadi atpakaļ
..
Catalogue 80169d6661 first 3 gadi atpakaļ
Command 80169d6661 first 3 gadi atpakaļ
DataCollector 80169d6661 first 3 gadi atpakaļ
DependencyInjection 80169d6661 first 3 gadi atpakaļ
Dumper 80169d6661 first 3 gadi atpakaļ
Exception 80169d6661 first 3 gadi atpakaļ
Extractor 80169d6661 first 3 gadi atpakaļ
Formatter 80169d6661 first 3 gadi atpakaļ
Loader 80169d6661 first 3 gadi atpakaļ
Reader 80169d6661 first 3 gadi atpakaļ
Resources 80169d6661 first 3 gadi atpakaļ
Util 80169d6661 first 3 gadi atpakaļ
Writer 80169d6661 first 3 gadi atpakaļ
.gitattributes 80169d6661 first 3 gadi atpakaļ
CHANGELOG.md 80169d6661 first 3 gadi atpakaļ
DataCollectorTranslator.php 80169d6661 first 3 gadi atpakaļ
IdentityTranslator.php 80169d6661 first 3 gadi atpakaļ
LICENSE 80169d6661 first 3 gadi atpakaļ
LoggingTranslator.php 80169d6661 first 3 gadi atpakaļ
MessageCatalogue.php 80169d6661 first 3 gadi atpakaļ
MessageCatalogueInterface.php 80169d6661 first 3 gadi atpakaļ
MetadataAwareInterface.php 80169d6661 first 3 gadi atpakaļ
README.md 80169d6661 first 3 gadi atpakaļ
Translator.php 80169d6661 first 3 gadi atpakaļ
TranslatorBagInterface.php 80169d6661 first 3 gadi atpakaļ
composer.json 80169d6661 first 3 gadi atpakaļ

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