mailcow/data/web/inc/lib/vendor/symfony/translation
2021-05-23 13:20:53 +02:00
..
Catalogue
Command
DataCollector
DependencyInjection
Dumper [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 2021-04-13 21:34:47 +02:00
Exception
Extractor
Formatter
Loader [Web] Update libs 2021-05-23 13:20:53 +02:00
Reader
Resources
Util
Writer
CHANGELOG.md
composer.json
DataCollectorTranslator.php
IdentityTranslator.php
LICENSE
LoggingTranslator.php
MessageCatalogue.php
MessageCatalogueInterface.php
MetadataAwareInterface.php
PseudoLocalizationTranslator.php
README.md
TranslatableMessage.php
Translator.php [Web] Update libs 2021-05-23 13:20:53 +02:00
TranslatorBagInterface.php

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