Zory fd28254f11 交付版本 пре 2 недеља
..
Catalogue fd28254f11 交付版本 пре 2 недеља
Command fd28254f11 交付版本 пре 2 недеља
DataCollector fd28254f11 交付版本 пре 2 недеља
DependencyInjection fd28254f11 交付版本 пре 2 недеља
Dumper fd28254f11 交付版本 пре 2 недеља
Exception fd28254f11 交付版本 пре 2 недеља
Extractor fd28254f11 交付版本 пре 2 недеља
Formatter fd28254f11 交付版本 пре 2 недеља
Loader fd28254f11 交付版本 пре 2 недеља
Provider fd28254f11 交付版本 пре 2 недеља
Reader fd28254f11 交付版本 пре 2 недеља
Resources fd28254f11 交付版本 пре 2 недеља
Test fd28254f11 交付版本 пре 2 недеља
Util fd28254f11 交付版本 пре 2 недеља
Writer fd28254f11 交付版本 пре 2 недеља
CHANGELOG.md fd28254f11 交付版本 пре 2 недеља
CatalogueMetadataAwareInterface.php fd28254f11 交付版本 пре 2 недеља
DataCollectorTranslator.php fd28254f11 交付版本 пре 2 недеља
IdentityTranslator.php fd28254f11 交付版本 пре 2 недеља
LICENSE fd28254f11 交付版本 пре 2 недеља
LocaleSwitcher.php fd28254f11 交付版本 пре 2 недеља
LoggingTranslator.php fd28254f11 交付版本 пре 2 недеља
MessageCatalogue.php fd28254f11 交付版本 пре 2 недеља
MessageCatalogueInterface.php fd28254f11 交付版本 пре 2 недеља
MetadataAwareInterface.php fd28254f11 交付版本 пре 2 недеља
PseudoLocalizationTranslator.php fd28254f11 交付版本 пре 2 недеља
README.md fd28254f11 交付版本 пре 2 недеља
StaticMessage.php fd28254f11 交付版本 пре 2 недеља
TranslatableMessage.php fd28254f11 交付版本 пре 2 недеља
Translator.php fd28254f11 交付版本 пре 2 недеља
TranslatorBag.php fd28254f11 交付版本 пре 2 недеља
TranslatorBagInterface.php fd28254f11 交付版本 пре 2 недеља
composer.json fd28254f11 交付版本 пре 2 недеља

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