bourse stock
chuan 054f90c580 init bource available 2 months ago
..
Catalogue init bource available 2 months ago
Command init bource available 2 months ago
DataCollector init bource available 2 months ago
DependencyInjection init bource available 2 months ago
Dumper init bource available 2 months ago
Exception init bource available 2 months ago
Extractor init bource available 2 months ago
Formatter init bource available 2 months ago
Loader init bource available 2 months ago
Provider init bource available 2 months ago
Reader init bource available 2 months ago
Resources init bource available 2 months ago
Test init bource available 2 months ago
Util init bource available 2 months ago
Writer init bource available 2 months ago
CHANGELOG.md init bource available 2 months ago
DataCollectorTranslator.php init bource available 2 months ago
IdentityTranslator.php init bource available 2 months ago
LICENSE init bource available 2 months ago
LoggingTranslator.php init bource available 2 months ago
MessageCatalogue.php init bource available 2 months ago
MessageCatalogueInterface.php init bource available 2 months ago
MetadataAwareInterface.php init bource available 2 months ago
PseudoLocalizationTranslator.php init bource available 2 months ago
README.md init bource available 2 months ago
TranslatableMessage.php init bource available 2 months ago
Translator.php init bource available 2 months ago
TranslatorBag.php init bource available 2 months ago
TranslatorBagInterface.php init bource available 2 months ago
composer.json init bource available 2 months ago

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