devn00b c2c6bf7610 Initial Upload of Bot hai 1 ano
..
Catalogue c2c6bf7610 Initial Upload of Bot hai 1 ano
Command c2c6bf7610 Initial Upload of Bot hai 1 ano
DataCollector c2c6bf7610 Initial Upload of Bot hai 1 ano
DependencyInjection c2c6bf7610 Initial Upload of Bot hai 1 ano
Dumper c2c6bf7610 Initial Upload of Bot hai 1 ano
Exception c2c6bf7610 Initial Upload of Bot hai 1 ano
Extractor c2c6bf7610 Initial Upload of Bot hai 1 ano
Formatter c2c6bf7610 Initial Upload of Bot hai 1 ano
Loader c2c6bf7610 Initial Upload of Bot hai 1 ano
Provider c2c6bf7610 Initial Upload of Bot hai 1 ano
Reader c2c6bf7610 Initial Upload of Bot hai 1 ano
Resources c2c6bf7610 Initial Upload of Bot hai 1 ano
Test c2c6bf7610 Initial Upload of Bot hai 1 ano
Util c2c6bf7610 Initial Upload of Bot hai 1 ano
Writer c2c6bf7610 Initial Upload of Bot hai 1 ano
CHANGELOG.md c2c6bf7610 Initial Upload of Bot hai 1 ano
DataCollectorTranslator.php c2c6bf7610 Initial Upload of Bot hai 1 ano
IdentityTranslator.php c2c6bf7610 Initial Upload of Bot hai 1 ano
LICENSE c2c6bf7610 Initial Upload of Bot hai 1 ano
LoggingTranslator.php c2c6bf7610 Initial Upload of Bot hai 1 ano
MessageCatalogue.php c2c6bf7610 Initial Upload of Bot hai 1 ano
MessageCatalogueInterface.php c2c6bf7610 Initial Upload of Bot hai 1 ano
MetadataAwareInterface.php c2c6bf7610 Initial Upload of Bot hai 1 ano
PseudoLocalizationTranslator.php c2c6bf7610 Initial Upload of Bot hai 1 ano
README.md c2c6bf7610 Initial Upload of Bot hai 1 ano
TranslatableMessage.php c2c6bf7610 Initial Upload of Bot hai 1 ano
Translator.php c2c6bf7610 Initial Upload of Bot hai 1 ano
TranslatorBag.php c2c6bf7610 Initial Upload of Bot hai 1 ano
TranslatorBagInterface.php c2c6bf7610 Initial Upload of Bot hai 1 ano
composer.json c2c6bf7610 Initial Upload of Bot hai 1 ano

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