### Symfony Translation Example Source: https://github.com/symfony/translation/blob/7.3/Tests/Fixtures/resourcebundle/dat/en.txt A basic example demonstrating the usage of Symfony's translation capabilities. ```en symfony { "Symfony is great" } ``` -------------------------------- ### Install Symfony Translation Component Source: https://github.com/symfony/translation/blob/7.3/README.md Installs the Symfony Translation component using Composer. This is the primary method for adding the component to a Symfony project. ```bash composer require symfony/translation ``` -------------------------------- ### Basic Translation Usage Source: https://github.com/symfony/translation/blob/7.3/README.md Demonstrates the basic usage of the Symfony Translation component. It shows how to create a Translator instance, add a loader, register translation resources, and translate a message. ```php 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 ! » ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.