You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lqmac
46bb7b19d3
|
9 months ago | |
---|---|---|
.. | ||
Catalogue | 9 months ago | |
Command | 9 months ago | |
DataCollector | 9 months ago | |
DependencyInjection | 9 months ago | |
Dumper | 9 months ago | |
Exception | 9 months ago | |
Extractor | 9 months ago | |
Formatter | 9 months ago | |
Loader | 9 months ago | |
Reader | 9 months ago | |
Resources | 9 months ago | |
Util | 9 months ago | |
Writer | 9 months ago | |
.gitattributes | 9 months ago | |
CHANGELOG.md | 9 months ago | |
DataCollectorTranslator.php | 9 months ago | |
IdentityTranslator.php | 9 months ago | |
LICENSE | 9 months ago | |
LoggingTranslator.php | 9 months ago | |
MessageCatalogue.php | 9 months ago | |
MessageCatalogueInterface.php | 9 months ago | |
MetadataAwareInterface.php | 9 months ago | |
README.md | 9 months ago | |
Translator.php | 9 months ago | |
TranslatorBagInterface.php | 9 months ago | |
composer.json | 9 months ago |
README.md
Translation Component
The Translation component provides tools to internationalize your application.
Getting Started
$ composer require symfony/translation
use Symfony\Component\Translation\Translator;
$translator = new Translator('fr_FR');
$translator->addResource('array', [
'Hello World!' => 'Bonjour !',
], 'fr_FR');
echo $translator->trans('Hello World!'); // outputs « Bonjour ! »