Zory a30513060a frist 4 tygodni temu
..
Catalogue a30513060a frist 4 tygodni temu
Command a30513060a frist 4 tygodni temu
DataCollector a30513060a frist 4 tygodni temu
DependencyInjection a30513060a frist 4 tygodni temu
Dumper a30513060a frist 4 tygodni temu
Exception a30513060a frist 4 tygodni temu
Extractor a30513060a frist 4 tygodni temu
Formatter a30513060a frist 4 tygodni temu
Loader a30513060a frist 4 tygodni temu
Provider a30513060a frist 4 tygodni temu
Reader a30513060a frist 4 tygodni temu
Resources a30513060a frist 4 tygodni temu
Test a30513060a frist 4 tygodni temu
Util a30513060a frist 4 tygodni temu
Writer a30513060a frist 4 tygodni temu
CHANGELOG.md a30513060a frist 4 tygodni temu
CatalogueMetadataAwareInterface.php a30513060a frist 4 tygodni temu
DataCollectorTranslator.php a30513060a frist 4 tygodni temu
IdentityTranslator.php a30513060a frist 4 tygodni temu
LICENSE a30513060a frist 4 tygodni temu
LocaleSwitcher.php a30513060a frist 4 tygodni temu
LoggingTranslator.php a30513060a frist 4 tygodni temu
MessageCatalogue.php a30513060a frist 4 tygodni temu
MessageCatalogueInterface.php a30513060a frist 4 tygodni temu
MetadataAwareInterface.php a30513060a frist 4 tygodni temu
PseudoLocalizationTranslator.php a30513060a frist 4 tygodni temu
README.md a30513060a frist 4 tygodni temu
TranslatableMessage.php a30513060a frist 4 tygodni temu
Translator.php a30513060a frist 4 tygodni temu
TranslatorBag.php a30513060a frist 4 tygodni temu
TranslatorBagInterface.php a30513060a frist 4 tygodni temu
composer.json a30513060a frist 4 tygodni temu

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

Sponsor

The Translation component for Symfony 7.1 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