igfs/vendor/symfony/translation
2024-07-03 14:41:15 +03:00
..
Catalogue v.0.1 2024-07-03 14:41:15 +03:00
Command v.0.1 2024-07-03 14:41:15 +03:00
DataCollector v.0.1 2024-07-03 14:41:15 +03:00
DependencyInjection v.0.1 2024-07-03 14:41:15 +03:00
Dumper v.0.1 2024-07-03 14:41:15 +03:00
Exception v.0.1 2024-07-03 14:41:15 +03:00
Extractor v.0.1 2024-07-03 14:41:15 +03:00
Formatter v.0.1 2024-07-03 14:41:15 +03:00
Loader v.0.1 2024-07-03 14:41:15 +03:00
Provider v.0.1 2024-07-03 14:41:15 +03:00
Reader v.0.1 2024-07-03 14:41:15 +03:00
Resources v.0.1 2024-07-03 14:41:15 +03:00
Test v.0.1 2024-07-03 14:41:15 +03:00
Util v.0.1 2024-07-03 14:41:15 +03:00
Writer v.0.1 2024-07-03 14:41:15 +03:00
CatalogueMetadataAwareInterface.php v.0.1 2024-07-03 14:41:15 +03:00
CHANGELOG.md v.0.1 2024-07-03 14:41:15 +03:00
composer.json v.0.1 2024-07-03 14:41:15 +03:00
DataCollectorTranslator.php v.0.1 2024-07-03 14:41:15 +03:00
IdentityTranslator.php v.0.1 2024-07-03 14:41:15 +03:00
LICENSE v.0.1 2024-07-03 14:41:15 +03:00
LocaleSwitcher.php v.0.1 2024-07-03 14:41:15 +03:00
LoggingTranslator.php v.0.1 2024-07-03 14:41:15 +03:00
MessageCatalogue.php v.0.1 2024-07-03 14:41:15 +03:00
MessageCatalogueInterface.php v.0.1 2024-07-03 14:41:15 +03:00
MetadataAwareInterface.php v.0.1 2024-07-03 14:41:15 +03:00
PseudoLocalizationTranslator.php v.0.1 2024-07-03 14:41:15 +03:00
README.md v.0.1 2024-07-03 14:41:15 +03:00
TranslatableMessage.php v.0.1 2024-07-03 14:41:15 +03:00
Translator.php v.0.1 2024-07-03 14:41:15 +03:00
TranslatorBag.php v.0.1 2024-07-03 14:41:15 +03:00
TranslatorBagInterface.php v.0.1 2024-07-03 14:41:15 +03:00

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

Help Symfony by sponsoring its development!

Resources