devn00b c2c6bf7610 Initial Upload of Bot 1 yıl önce
..
Catalogue c2c6bf7610 Initial Upload of Bot 1 yıl önce
Command c2c6bf7610 Initial Upload of Bot 1 yıl önce
DataCollector c2c6bf7610 Initial Upload of Bot 1 yıl önce
DependencyInjection c2c6bf7610 Initial Upload of Bot 1 yıl önce
Dumper c2c6bf7610 Initial Upload of Bot 1 yıl önce
Exception c2c6bf7610 Initial Upload of Bot 1 yıl önce
Extractor c2c6bf7610 Initial Upload of Bot 1 yıl önce
Formatter c2c6bf7610 Initial Upload of Bot 1 yıl önce
Loader c2c6bf7610 Initial Upload of Bot 1 yıl önce
Provider c2c6bf7610 Initial Upload of Bot 1 yıl önce
Reader c2c6bf7610 Initial Upload of Bot 1 yıl önce
Resources c2c6bf7610 Initial Upload of Bot 1 yıl önce
Test c2c6bf7610 Initial Upload of Bot 1 yıl önce
Util c2c6bf7610 Initial Upload of Bot 1 yıl önce
Writer c2c6bf7610 Initial Upload of Bot 1 yıl önce
CHANGELOG.md c2c6bf7610 Initial Upload of Bot 1 yıl önce
DataCollectorTranslator.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
IdentityTranslator.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
LICENSE c2c6bf7610 Initial Upload of Bot 1 yıl önce
LoggingTranslator.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
MessageCatalogue.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
MessageCatalogueInterface.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
MetadataAwareInterface.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
PseudoLocalizationTranslator.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
README.md c2c6bf7610 Initial Upload of Bot 1 yıl önce
TranslatableMessage.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
Translator.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
TranslatorBag.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
TranslatorBagInterface.php c2c6bf7610 Initial Upload of Bot 1 yıl önce
composer.json c2c6bf7610 Initial Upload of Bot 1 yıl ö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 ! »

Sponsor

The Translation component for Symfony 5.4/6.0 is backed by:

  • Crowdin, a cloud-based localization management software helping teams to go global and stay agile.
  • Lokalise, a continuous localization and translation management platform that integrates into your development workflow so you can ship localized products, faster.

Help Symfony by sponsoring its development!

Resources