![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | Translator.php | 2020-11-16 16:01 | 16K | |
![]() | MessageCatalogue.php | 2020-11-16 16:01 | 8.9K | |
![]() | PluralizationRules.php | 2020-11-16 16:01 | 6.3K | |
![]() | DataCollectorTransla..> | 2020-11-16 16:01 | 5.5K | |
![]() | LoggingTranslator.php | 2020-11-16 16:01 | 4.7K | |
![]() | CHANGELOG.md | 2020-11-16 16:01 | 4.7K | |
![]() | MessageCatalogueInte..> | 2020-11-16 16:01 | 3.6K | |
![]() | MessageSelector.php | 2020-11-16 16:01 | 3.6K | |
![]() | Interval.php | 2020-11-16 16:01 | 3.0K | |
![]() | TranslatorInterface.php | 2020-11-16 16:01 | 2.4K | |
![]() | IdentityTranslator.php | 2020-11-16 16:01 | 2.2K | |
![]() | composer.json | 2020-11-16 16:01 | 1.7K | |
![]() | MetadataAwareInterfa..> | 2020-11-16 16:01 | 1.5K | |
![]() | LICENSE | 2020-11-16 16:01 | 1.0K | |
![]() | TranslatorBagInterfa..> | 2020-11-16 16:01 | 802 | |
![]() | Writer/ | 2020-11-16 15:51 | - | |
![]() | Util/ | 2020-11-16 15:51 | - | |
![]() | Resources/ | 2020-11-16 15:51 | - | |
![]() | Reader/ | 2020-11-16 15:51 | - | |
![]() | Loader/ | 2020-11-16 15:51 | - | |
![]() | Formatter/ | 2020-11-16 15:51 | - | |
![]() | Extractor/ | 2020-11-16 15:51 | - | |
![]() | Exception/ | 2020-11-16 15:51 | - | |
![]() | Dumper/ | 2020-11-16 15:51 | - | |
![]() | DependencyInjection/ | 2020-11-16 15:51 | - | |
![]() | DataCollector/ | 2020-11-16 15:51 | - | |
![]() | Command/ | 2020-11-16 15:51 | - | |
![]() | Catalogue/ | 2020-11-16 15:51 | - | |
Translation Component ===================== The Translation component provides tools to internationalize your application. Getting Started --------------- ``` $ composer require symfony/translation ``` ```php use Symfony\Component\Translation\Translator; $translator = new Translator('fr_FR'); $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)