bakalarska_praca/database/vendor/symfony/translation
2023-05-11 21:57:12 +02:00
..
Catalogue first commit 2023-05-11 21:57:12 +02:00
Command first commit 2023-05-11 21:57:12 +02:00
DataCollector first commit 2023-05-11 21:57:12 +02:00
DependencyInjection first commit 2023-05-11 21:57:12 +02:00
Dumper first commit 2023-05-11 21:57:12 +02:00
Exception first commit 2023-05-11 21:57:12 +02:00
Extractor first commit 2023-05-11 21:57:12 +02:00
Formatter first commit 2023-05-11 21:57:12 +02:00
Loader first commit 2023-05-11 21:57:12 +02:00
Provider first commit 2023-05-11 21:57:12 +02:00
Reader first commit 2023-05-11 21:57:12 +02:00
Resources first commit 2023-05-11 21:57:12 +02:00
Test first commit 2023-05-11 21:57:12 +02:00
Util first commit 2023-05-11 21:57:12 +02:00
Writer first commit 2023-05-11 21:57:12 +02:00
CatalogueMetadataAwareInterface.php first commit 2023-05-11 21:57:12 +02:00
CHANGELOG.md first commit 2023-05-11 21:57:12 +02:00
composer.json first commit 2023-05-11 21:57:12 +02:00
DataCollectorTranslator.php first commit 2023-05-11 21:57:12 +02:00
IdentityTranslator.php first commit 2023-05-11 21:57:12 +02:00
LICENSE first commit 2023-05-11 21:57:12 +02:00
LocaleSwitcher.php first commit 2023-05-11 21:57:12 +02:00
LoggingTranslator.php first commit 2023-05-11 21:57:12 +02:00
MessageCatalogue.php first commit 2023-05-11 21:57:12 +02:00
MessageCatalogueInterface.php first commit 2023-05-11 21:57:12 +02:00
MetadataAwareInterface.php first commit 2023-05-11 21:57:12 +02:00
PseudoLocalizationTranslator.php first commit 2023-05-11 21:57:12 +02:00
README.md first commit 2023-05-11 21:57:12 +02:00
TranslatableMessage.php first commit 2023-05-11 21:57:12 +02:00
Translator.php first commit 2023-05-11 21:57:12 +02:00
TranslatorBag.php first commit 2023-05-11 21:57:12 +02:00
TranslatorBagInterface.php first commit 2023-05-11 21:57:12 +02:00

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 6.2 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