andryyy cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
..
Catalogue 5035e5bb42 [Web] Update composer deps пре 4 година
Command cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
DataCollector 19843cc786 [Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication пре 4 година
DependencyInjection cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
Dumper cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
Exception cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
Extractor cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
Formatter 19843cc786 [Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication пре 4 година
Loader cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
Provider 5035e5bb42 [Web] Update composer deps пре 4 година
Reader 19843cc786 [Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication пре 4 година
Resources cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
Test 5035e5bb42 [Web] Update composer deps пре 4 година
Util 19843cc786 [Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication пре 4 година
Writer cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
CHANGELOG.md 5035e5bb42 [Web] Update composer deps пре 4 година
DataCollectorTranslator.php 5035e5bb42 [Web] Update composer deps пре 4 година
IdentityTranslator.php 19843cc786 [Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication пре 4 година
LICENSE 19843cc786 [Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication пре 4 година
LoggingTranslator.php 5035e5bb42 [Web] Update composer deps пре 4 година
MessageCatalogue.php cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
MessageCatalogueInterface.php 19843cc786 [Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication пре 4 година
MetadataAwareInterface.php cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
PseudoLocalizationTranslator.php 5035e5bb42 [Web] Update composer deps пре 4 година
README.md 5035e5bb42 [Web] Update composer deps пре 4 година
TranslatableMessage.php 19843cc786 [Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication пре 4 година
Translator.php cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година
TranslatorBag.php 5035e5bb42 [Web] Update composer deps пре 4 година
TranslatorBagInterface.php 5035e5bb42 [Web] Update composer deps пре 4 година
composer.json cf8fdae277 [Web] Some minor fixes and improvements for PHP 8 пре 4 година

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