StocksNew/vendor/symfony/translation
Sampanna Rimal 82fab174dc changes
2024-09-04 12:22:04 +05:45
..
Catalogue first commit 2024-08-27 17:48:06 +05:45
Command first commit 2024-08-27 17:48:06 +05:45
DataCollector first commit 2024-08-27 17:48:06 +05:45
DependencyInjection first commit 2024-08-27 17:48:06 +05:45
Dumper first commit 2024-08-27 17:48:06 +05:45
Exception first commit 2024-08-27 17:48:06 +05:45
Extractor first commit 2024-08-27 17:48:06 +05:45
Formatter first commit 2024-08-27 17:48:06 +05:45
Loader changes 2024-09-04 12:22:04 +05:45
Provider first commit 2024-08-27 17:48:06 +05:45
Reader first commit 2024-08-27 17:48:06 +05:45
Resources changes 2024-09-04 12:22:04 +05:45
Test first commit 2024-08-27 17:48:06 +05:45
Util first commit 2024-08-27 17:48:06 +05:45
Writer first commit 2024-08-27 17:48:06 +05:45
CatalogueMetadataAwareInterface.php first commit 2024-08-27 17:48:06 +05:45
CHANGELOG.md first commit 2024-08-27 17:48:06 +05:45
composer.json first commit 2024-08-27 17:48:06 +05:45
DataCollectorTranslator.php first commit 2024-08-27 17:48:06 +05:45
IdentityTranslator.php first commit 2024-08-27 17:48:06 +05:45
LICENSE first commit 2024-08-27 17:48:06 +05:45
LocaleSwitcher.php changes 2024-09-04 12:22:04 +05:45
LoggingTranslator.php first commit 2024-08-27 17:48:06 +05:45
MessageCatalogue.php first commit 2024-08-27 17:48:06 +05:45
MessageCatalogueInterface.php first commit 2024-08-27 17:48:06 +05:45
MetadataAwareInterface.php first commit 2024-08-27 17:48:06 +05:45
PseudoLocalizationTranslator.php first commit 2024-08-27 17:48:06 +05:45
README.md first commit 2024-08-27 17:48:06 +05:45
TranslatableMessage.php first commit 2024-08-27 17:48:06 +05:45
Translator.php first commit 2024-08-27 17:48:06 +05:45
TranslatorBag.php first commit 2024-08-27 17:48:06 +05:45
TranslatorBagInterface.php first commit 2024-08-27 17:48:06 +05:45

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