rkljw aca9e4998b 1 6 달 전
..
Catalogue aca9e4998b 1 6 달 전
Command aca9e4998b 1 6 달 전
DataCollector aca9e4998b 1 6 달 전
DependencyInjection aca9e4998b 1 6 달 전
Dumper aca9e4998b 1 6 달 전
Exception aca9e4998b 1 6 달 전
Extractor aca9e4998b 1 6 달 전
Formatter aca9e4998b 1 6 달 전
Loader aca9e4998b 1 6 달 전
Provider aca9e4998b 1 6 달 전
Reader aca9e4998b 1 6 달 전
Resources aca9e4998b 1 6 달 전
Test aca9e4998b 1 6 달 전
Util aca9e4998b 1 6 달 전
Writer aca9e4998b 1 6 달 전
CHANGELOG.md aca9e4998b 1 6 달 전
CatalogueMetadataAwareInterface.php aca9e4998b 1 6 달 전
DataCollectorTranslator.php aca9e4998b 1 6 달 전
IdentityTranslator.php aca9e4998b 1 6 달 전
LICENSE aca9e4998b 1 6 달 전
LocaleSwitcher.php aca9e4998b 1 6 달 전
LoggingTranslator.php aca9e4998b 1 6 달 전
MessageCatalogue.php aca9e4998b 1 6 달 전
MessageCatalogueInterface.php aca9e4998b 1 6 달 전
MetadataAwareInterface.php aca9e4998b 1 6 달 전
PseudoLocalizationTranslator.php aca9e4998b 1 6 달 전
README.md aca9e4998b 1 6 달 전
TranslatableMessage.php aca9e4998b 1 6 달 전
Translator.php aca9e4998b 1 6 달 전
TranslatorBag.php aca9e4998b 1 6 달 전
TranslatorBagInterface.php aca9e4998b 1 6 달 전
composer.json aca9e4998b 1 6 달 전

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