back to home
symfony / translation
Provides tools to internationalize your application
6,619 stars
89 forks
0 issues
PHP
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing symfony/translation in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Source files are only loaded when you start an analysis to optimize performance.
Repository Summary (README)
PreviewTranslation 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
Help Symfony by sponsoring its development!