jun 241d78f74c first commit пре 1 недеља
..
Catalogue 241d78f74c first commit пре 1 недеља
Command 241d78f74c first commit пре 1 недеља
DataCollector 241d78f74c first commit пре 1 недеља
DependencyInjection 241d78f74c first commit пре 1 недеља
Dumper 241d78f74c first commit пре 1 недеља
Exception 241d78f74c first commit пре 1 недеља
Extractor 241d78f74c first commit пре 1 недеља
Formatter 241d78f74c first commit пре 1 недеља
Loader 241d78f74c first commit пре 1 недеља
Provider 241d78f74c first commit пре 1 недеља
Reader 241d78f74c first commit пре 1 недеља
Resources 241d78f74c first commit пре 1 недеља
Test 241d78f74c first commit пре 1 недеља
Util 241d78f74c first commit пре 1 недеља
Writer 241d78f74c first commit пре 1 недеља
CHANGELOG.md 241d78f74c first commit пре 1 недеља
DataCollectorTranslator.php 241d78f74c first commit пре 1 недеља
IdentityTranslator.php 241d78f74c first commit пре 1 недеља
LICENSE 241d78f74c first commit пре 1 недеља
LoggingTranslator.php 241d78f74c first commit пре 1 недеља
MessageCatalogue.php 241d78f74c first commit пре 1 недеља
MessageCatalogueInterface.php 241d78f74c first commit пре 1 недеља
MetadataAwareInterface.php 241d78f74c first commit пре 1 недеља
PseudoLocalizationTranslator.php 241d78f74c first commit пре 1 недеља
README.md 241d78f74c first commit пре 1 недеља
TranslatableMessage.php 241d78f74c first commit пре 1 недеља
Translator.php 241d78f74c first commit пре 1 недеља
TranslatorBag.php 241d78f74c first commit пре 1 недеља
TranslatorBagInterface.php 241d78f74c first commit пре 1 недеља
composer.json 241d78f74c first commit пре 1 недеља

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 5.4/6.0 is backed by:

  • Crowdin, a cloud-based localization management software helping teams to go global and stay agile.
  • Lokalise, a continuous localization and translation management platform that integrates into your development workflow so you can ship localized products, faster.

Help Symfony by sponsoring its development!

Resources