![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | Translator.php | 2023-04-17 22:05 | 16K | |
![]() | MessageCatalogue.php | 2023-04-17 22:05 | 8.5K | |
![]() | PluralizationRules.php | 2023-04-17 22:05 | 6.4K | |
![]() | DataCollectorTransla..> | 2023-04-17 22:05 | 5.6K | |
![]() | LoggingTranslator.php | 2023-04-17 22:05 | 4.7K | |
![]() | CHANGELOG.md | 2023-04-17 22:05 | 4.7K | |
![]() | MessageCatalogueInte..> | 2023-04-17 22:05 | 3.6K | |
![]() | MessageSelector.php | 2023-04-17 22:05 | 3.6K | |
![]() | Interval.php | 2023-04-17 22:05 | 3.0K | |
![]() | TranslatorInterface.php | 2023-04-17 22:05 | 2.4K | |
![]() | IdentityTranslator.php | 2023-04-17 22:05 | 2.2K | |
![]() | composer.json | 2023-04-17 22:05 | 1.6K | |
![]() | MetadataAwareInterfa..> | 2023-04-17 22:05 | 1.5K | |
![]() | LICENSE | 2023-04-17 22:05 | 1.0K | |
![]() | TranslatorBagInterfa..> | 2023-04-17 22:05 | 802 | |
![]() | Writer/ | 2023-04-17 22:05 | - | |
![]() | Util/ | 2023-04-17 22:05 | - | |
![]() | Resources/ | 2023-04-17 22:05 | - | |
![]() | Reader/ | 2023-04-17 22:05 | - | |
![]() | Loader/ | 2023-04-17 22:05 | - | |
![]() | Formatter/ | 2023-04-17 22:05 | - | |
![]() | Extractor/ | 2023-04-17 22:05 | - | |
![]() | Exception/ | 2023-04-17 22:05 | - | |
![]() | Dumper/ | 2023-04-17 22:05 | - | |
![]() | DependencyInjection/ | 2023-04-17 22:05 | - | |
![]() | DataCollector/ | 2023-04-17 22:05 | - | |
![]() | Command/ | 2023-04-17 22:05 | - | |
![]() | Catalogue/ | 2023-04-17 22:05 | - | |
Translation Component ===================== The Translation component provides tools to internationalize your application. Getting Started --------------- ``` $ composer require symfony/translation ``` ```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 ! » ``` Resources --------- * [Documentation](https://symfony.com/doc/current/translation.html) * [Contributing](https://symfony.com/doc/current/contributing/index.html) * [Report issues](https://github.com/symfony/symfony/issues) and [send Pull Requests](https://github.com/symfony/symfony/pulls) in the [main Symfony repository](https://github.com/symfony/symfony)