Tehnika-Dunyasi/vendor/symfony/translation
Kerim 485714cc8e first commit 2022-10-24 10:25:52 +05:00
..
Catalogue first commit 2022-10-24 10:25:52 +05:00
Command first commit 2022-10-24 10:25:52 +05:00
DataCollector first commit 2022-10-24 10:25:52 +05:00
DependencyInjection first commit 2022-10-24 10:25:52 +05:00
Dumper first commit 2022-10-24 10:25:52 +05:00
Exception first commit 2022-10-24 10:25:52 +05:00
Extractor first commit 2022-10-24 10:25:52 +05:00
Formatter first commit 2022-10-24 10:25:52 +05:00
Loader first commit 2022-10-24 10:25:52 +05:00
Reader first commit 2022-10-24 10:25:52 +05:00
Resources first commit 2022-10-24 10:25:52 +05:00
Util first commit 2022-10-24 10:25:52 +05:00
Writer first commit 2022-10-24 10:25:52 +05:00
CHANGELOG.md first commit 2022-10-24 10:25:52 +05:00
DataCollectorTranslator.php first commit 2022-10-24 10:25:52 +05:00
IdentityTranslator.php first commit 2022-10-24 10:25:52 +05:00
Interval.php first commit 2022-10-24 10:25:52 +05:00
LICENSE first commit 2022-10-24 10:25:52 +05:00
LoggingTranslator.php first commit 2022-10-24 10:25:52 +05:00
MessageCatalogue.php first commit 2022-10-24 10:25:52 +05:00
MessageCatalogueInterface.php first commit 2022-10-24 10:25:52 +05:00
MessageSelector.php first commit 2022-10-24 10:25:52 +05:00
MetadataAwareInterface.php first commit 2022-10-24 10:25:52 +05:00
PluralizationRules.php first commit 2022-10-24 10:25:52 +05:00
README.md first commit 2022-10-24 10:25:52 +05:00
Translator.php first commit 2022-10-24 10:25:52 +05:00
TranslatorBagInterface.php first commit 2022-10-24 10:25:52 +05:00
TranslatorInterface.php first commit 2022-10-24 10:25:52 +05:00
composer.json first commit 2022-10-24 10:25:52 +05:00

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 ! »

Resources