Zory a30513060a frist 4 týždňov pred
..
Catalogue a30513060a frist 4 týždňov pred
Command a30513060a frist 4 týždňov pred
DataCollector a30513060a frist 4 týždňov pred
DependencyInjection a30513060a frist 4 týždňov pred
Dumper a30513060a frist 4 týždňov pred
Exception a30513060a frist 4 týždňov pred
Extractor a30513060a frist 4 týždňov pred
Formatter a30513060a frist 4 týždňov pred
Loader a30513060a frist 4 týždňov pred
Provider a30513060a frist 4 týždňov pred
Reader a30513060a frist 4 týždňov pred
Resources a30513060a frist 4 týždňov pred
Test a30513060a frist 4 týždňov pred
Util a30513060a frist 4 týždňov pred
Writer a30513060a frist 4 týždňov pred
CHANGELOG.md a30513060a frist 4 týždňov pred
CatalogueMetadataAwareInterface.php a30513060a frist 4 týždňov pred
DataCollectorTranslator.php a30513060a frist 4 týždňov pred
IdentityTranslator.php a30513060a frist 4 týždňov pred
LICENSE a30513060a frist 4 týždňov pred
LocaleSwitcher.php a30513060a frist 4 týždňov pred
LoggingTranslator.php a30513060a frist 4 týždňov pred
MessageCatalogue.php a30513060a frist 4 týždňov pred
MessageCatalogueInterface.php a30513060a frist 4 týždňov pred
MetadataAwareInterface.php a30513060a frist 4 týždňov pred
PseudoLocalizationTranslator.php a30513060a frist 4 týždňov pred
README.md a30513060a frist 4 týždňov pred
TranslatableMessage.php a30513060a frist 4 týždňov pred
Translator.php a30513060a frist 4 týždňov pred
TranslatorBag.php a30513060a frist 4 týždňov pred
TranslatorBagInterface.php a30513060a frist 4 týždňov pred
composer.json a30513060a frist 4 týždňov pred

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 7.1 is backed by:

  • Crowdin, a cloud-based localization management software helping teams to go global and stay agile.

Help Symfony by sponsoring its development!

Resources