Kirin 93a3391a21 init | hai 11 meses | |
---|---|---|
.. | ||
Catalogue | hai 11 meses | |
Command | hai 11 meses | |
DataCollector | hai 11 meses | |
DependencyInjection | hai 11 meses | |
Dumper | hai 11 meses | |
Exception | hai 11 meses | |
Extractor | hai 11 meses | |
Formatter | hai 11 meses | |
Loader | hai 11 meses | |
Provider | hai 11 meses | |
Reader | hai 11 meses | |
Resources | hai 11 meses | |
Test | hai 11 meses | |
Util | hai 11 meses | |
Writer | hai 11 meses | |
CHANGELOG.md | hai 11 meses | |
DataCollectorTranslator.php | hai 11 meses | |
IdentityTranslator.php | hai 11 meses | |
LICENSE | hai 11 meses | |
LoggingTranslator.php | hai 11 meses | |
MessageCatalogue.php | hai 11 meses | |
MessageCatalogueInterface.php | hai 11 meses | |
MetadataAwareInterface.php | hai 11 meses | |
PseudoLocalizationTranslator.php | hai 11 meses | |
README.md | hai 11 meses | |
TranslatableMessage.php | hai 11 meses | |
Translator.php | hai 11 meses | |
TranslatorBag.php | hai 11 meses | |
TranslatorBagInterface.php | hai 11 meses | |
composer.json | hai 11 meses |
The Translation component provides tools to internationalize your application.
$ 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 ! »
The Translation component for Symfony 5.4/6.0 is backed by:
Help Symfony by sponsoring its development!