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