WowPress-Tailwind/theme/vendor/symfony/translation
sephger 45e66ab3a0 New 2024-04-15 16:00:49 +02:00
..
Catalogue New 2024-04-15 16:00:49 +02:00
Command New 2024-04-15 16:00:49 +02:00
DataCollector New 2024-04-15 16:00:49 +02:00
DependencyInjection New 2024-04-15 16:00:49 +02:00
Dumper New 2024-04-15 16:00:49 +02:00
Exception New 2024-04-15 16:00:49 +02:00
Extractor New 2024-04-15 16:00:49 +02:00
Formatter New 2024-04-15 16:00:49 +02:00
Loader New 2024-04-15 16:00:49 +02:00
Provider New 2024-04-15 16:00:49 +02:00
Reader New 2024-04-15 16:00:49 +02:00
Resources New 2024-04-15 16:00:49 +02:00
Test New 2024-04-15 16:00:49 +02:00
Util New 2024-04-15 16:00:49 +02:00
Writer New 2024-04-15 16:00:49 +02:00
CHANGELOG.md New 2024-04-15 16:00:49 +02:00
CatalogueMetadataAwareInterface.php New 2024-04-15 16:00:49 +02:00
DataCollectorTranslator.php New 2024-04-15 16:00:49 +02:00
IdentityTranslator.php New 2024-04-15 16:00:49 +02:00
LICENSE New 2024-04-15 16:00:49 +02:00
LocaleSwitcher.php New 2024-04-15 16:00:49 +02:00
LoggingTranslator.php New 2024-04-15 16:00:49 +02:00
MessageCatalogue.php New 2024-04-15 16:00:49 +02:00
MessageCatalogueInterface.php New 2024-04-15 16:00:49 +02:00
MetadataAwareInterface.php New 2024-04-15 16:00:49 +02:00
PseudoLocalizationTranslator.php New 2024-04-15 16:00:49 +02:00
README.md New 2024-04-15 16:00:49 +02:00
TranslatableMessage.php New 2024-04-15 16:00:49 +02:00
Translator.php New 2024-04-15 16:00:49 +02:00
TranslatorBag.php New 2024-04-15 16:00:49 +02:00
TranslatorBagInterface.php New 2024-04-15 16:00:49 +02:00
composer.json New 2024-04-15 16:00:49 +02:00

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

Help Symfony by sponsoring its development!

Resources