ponepaste/vendor/symfony/translation
2023-05-29 11:13:32 -04:00
..
Catalogue misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
Command fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
DataCollector misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
DependencyInjection fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
Dumper misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
Exception misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
Extractor misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
Formatter misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
Loader fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
Provider misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
Reader misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
Resources misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
Test fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
Util misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
Writer Update illuminate/database 2022-03-14 16:22:30 -04:00
CatalogueMetadataAwareInterface.php misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
CHANGELOG.md fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
composer.json misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
DataCollectorTranslator.php misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
IdentityTranslator.php So much shit. Experimenting with Eloquent. 2021-08-27 06:46:27 -04:00
LICENSE fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
LocaleSwitcher.php fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
LoggingTranslator.php misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
MessageCatalogue.php misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
MessageCatalogueInterface.php fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
MetadataAwareInterface.php misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
PseudoLocalizationTranslator.php misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
README.md fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
TranslatableMessage.php Update illuminate/database 2022-03-14 16:22:30 -04:00
Translator.php misc cleanup, update vendor stuff, fix captcha 2023-02-24 06:26:40 -05:00
TranslatorBag.php fix: make Pastedown better? 2023-05-29 11:13:32 -04:00
TranslatorBagInterface.php Update illuminate/database 2022-03-14 16:22:30 -04: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

The Translation component for Symfony 6.2 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