one_after 0b792b2ff8 111 3 ay önce
..
Catalogue 0b792b2ff8 111 3 ay önce
Command 0b792b2ff8 111 3 ay önce
DataCollector 0b792b2ff8 111 3 ay önce
DependencyInjection 0b792b2ff8 111 3 ay önce
Dumper 0b792b2ff8 111 3 ay önce
Exception 0b792b2ff8 111 3 ay önce
Extractor 0b792b2ff8 111 3 ay önce
Formatter 0b792b2ff8 111 3 ay önce
Loader 0b792b2ff8 111 3 ay önce
Provider 0b792b2ff8 111 3 ay önce
Reader 0b792b2ff8 111 3 ay önce
Resources 0b792b2ff8 111 3 ay önce
Test 0b792b2ff8 111 3 ay önce
Util 0b792b2ff8 111 3 ay önce
Writer 0b792b2ff8 111 3 ay önce
CHANGELOG.md 0b792b2ff8 111 3 ay önce
CatalogueMetadataAwareInterface.php 0b792b2ff8 111 3 ay önce
DataCollectorTranslator.php 0b792b2ff8 111 3 ay önce
IdentityTranslator.php 0b792b2ff8 111 3 ay önce
LICENSE 0b792b2ff8 111 3 ay önce
LocaleSwitcher.php 0b792b2ff8 111 3 ay önce
LoggingTranslator.php 0b792b2ff8 111 3 ay önce
MessageCatalogue.php 0b792b2ff8 111 3 ay önce
MessageCatalogueInterface.php 0b792b2ff8 111 3 ay önce
MetadataAwareInterface.php 0b792b2ff8 111 3 ay önce
PseudoLocalizationTranslator.php 0b792b2ff8 111 3 ay önce
README.md 0b792b2ff8 111 3 ay önce
TranslatableMessage.php 0b792b2ff8 111 3 ay önce
Translator.php 0b792b2ff8 111 3 ay önce
TranslatorBag.php 0b792b2ff8 111 3 ay önce
TranslatorBagInterface.php 0b792b2ff8 111 3 ay önce
composer.json 0b792b2ff8 111 3 ay önce

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

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