Zory a30513060a frist пре 4 недеља
..
Catalogue a30513060a frist пре 4 недеља
Command a30513060a frist пре 4 недеља
DataCollector a30513060a frist пре 4 недеља
DependencyInjection a30513060a frist пре 4 недеља
Dumper a30513060a frist пре 4 недеља
Exception a30513060a frist пре 4 недеља
Extractor a30513060a frist пре 4 недеља
Formatter a30513060a frist пре 4 недеља
Loader a30513060a frist пре 4 недеља
Provider a30513060a frist пре 4 недеља
Reader a30513060a frist пре 4 недеља
Resources a30513060a frist пре 4 недеља
Test a30513060a frist пре 4 недеља
Util a30513060a frist пре 4 недеља
Writer a30513060a frist пре 4 недеља
CHANGELOG.md a30513060a frist пре 4 недеља
CatalogueMetadataAwareInterface.php a30513060a frist пре 4 недеља
DataCollectorTranslator.php a30513060a frist пре 4 недеља
IdentityTranslator.php a30513060a frist пре 4 недеља
LICENSE a30513060a frist пре 4 недеља
LocaleSwitcher.php a30513060a frist пре 4 недеља
LoggingTranslator.php a30513060a frist пре 4 недеља
MessageCatalogue.php a30513060a frist пре 4 недеља
MessageCatalogueInterface.php a30513060a frist пре 4 недеља
MetadataAwareInterface.php a30513060a frist пре 4 недеља
PseudoLocalizationTranslator.php a30513060a frist пре 4 недеља
README.md a30513060a frist пре 4 недеља
TranslatableMessage.php a30513060a frist пре 4 недеља
Translator.php a30513060a frist пре 4 недеља
TranslatorBag.php a30513060a frist пре 4 недеља
TranslatorBagInterface.php a30513060a frist пре 4 недеља
composer.json a30513060a frist пре 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 ! »

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