Système de gestion de traductions pensé en CMS headless : un back-office pour ceux qui traduisent, une API pour ce qui consomme. Architecture - Symfony 7.4 / API Platform 4.3 / MariaDB 11.4, SPA React 19 servie en même origine — ce qui rend viable le cookie de session plutôt qu'un jeton en localStorage. - Deux APIs séparées : Management (session ou clé) et Delivery (stateless, clé seule). Les fusionner ferait porter à chaque lecture de bundle le coût de la session. - Stockage canonique en ICU MessageFormat, sérialisation par plateforme. Le format d'une plateforme ne contamine pas la base. - Publication par releases immuables ; le déploiement est un déplacement de pointeur, donc le rollback aussi. - Isolation multi-organisation par filtre Doctrine, avec un test d'architecture qui casse la CI si une entité échappe à l'invariant. Éditeur, deux vues - Par langue : source et cible, jamais douze colonnes. Grille virtualisée, saisie sans bouton « Enregistrer », panneau de contexte permanent. - Par clé : une clé, toutes ses langues empilées et repliées. Répond à « ce libellé est-il prêt partout ? ». - Mode Focus dans les deux : une file à vider, ⌘↵ pour enchaîner. - Le traducteur ne voit jamais d'ICU : pastilles de variables, un champ par catégorie CLDR de la langue cible. Administration - Deux niveaux : projet (membres, clés API, plateformes) et organisation (annuaire des comptes, création de projets). - Invitations par e-mail, jeton 256 bits stocké haché. - Désactiver un compte coupe les sessions en cours, pas seulement les connexions suivantes. - Les plateformes s'archivent ; ni elles ni les environnements ne se suppriment — la trace explique pourquoi telle clé existe. CLI tqs - PHAR autonome de 3 Mo, autoloader généré : le dépôt client ne dépend ni de Composer ni de la disponibilité de TQ-Slator. - init / push / pull / status ; le sync est non destructif par défaut et son prune est scopé plateforme. 126 tests, PHPStan niveau 8. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
268 lines
7.5 KiB
Text
268 lines
7.5 KiB
Text
{
|
|
"api-platform/symfony": {
|
|
"version": "4.3",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "4.0",
|
|
"ref": "e9952e9f393c2d048f10a78f272cd35e807d972b"
|
|
},
|
|
"files": [
|
|
"config/packages/api_platform.yaml",
|
|
"config/routes/api_platform.yaml",
|
|
"src/ApiResource/.gitignore"
|
|
]
|
|
},
|
|
"doctrine/deprecations": {
|
|
"version": "1.1",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "1.0",
|
|
"ref": "fdd756167454623e21f1d769c5b814b243782a67"
|
|
}
|
|
},
|
|
"doctrine/doctrine-bundle": {
|
|
"version": "3.3",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "3.0",
|
|
"ref": "d39a3bd844edfe90c20ae520b804a3bf4f82b4ad"
|
|
},
|
|
"files": [
|
|
"config/packages/doctrine.yaml",
|
|
"src/Entity/.gitignore",
|
|
"src/Repository/.gitignore"
|
|
]
|
|
},
|
|
"doctrine/doctrine-fixtures-bundle": {
|
|
"version": "4.3",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "3.0",
|
|
"ref": "1f5514cfa15b947298df4d771e694e578d4c204d"
|
|
},
|
|
"files": [
|
|
"src/DataFixtures/AppFixtures.php"
|
|
]
|
|
},
|
|
"doctrine/doctrine-migrations-bundle": {
|
|
"version": "4.0",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "3.1",
|
|
"ref": "1d01ec03c6ecbd67c3375c5478c9a423ae5d6a33"
|
|
},
|
|
"files": [
|
|
"config/packages/doctrine_migrations.yaml",
|
|
"migrations/.gitignore"
|
|
]
|
|
},
|
|
"friendsofphp/php-cs-fixer": {
|
|
"version": "3.95",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "3.39",
|
|
"ref": "97aaf9026490db73b86c23d49e5774bc89d2b232"
|
|
},
|
|
"files": [
|
|
".php-cs-fixer.dist.php"
|
|
]
|
|
},
|
|
"nelmio/cors-bundle": {
|
|
"version": "2.6",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "1.5",
|
|
"ref": "6bea22e6c564fba3a1391615cada1437d0bde39c"
|
|
},
|
|
"files": [
|
|
"config/packages/nelmio_cors.yaml"
|
|
]
|
|
},
|
|
"phpstan/phpstan": {
|
|
"version": "2.2.8"
|
|
},
|
|
"phpunit/phpunit": {
|
|
"version": "12.5",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "11.1",
|
|
"ref": "ca0bc067abfb40a8de1b2561b96cbfc2b833c314"
|
|
},
|
|
"files": [
|
|
".env.test",
|
|
"phpunit.dist.xml",
|
|
"tests/bootstrap.php",
|
|
"bin/phpunit"
|
|
]
|
|
},
|
|
"symfony/console": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "5.3",
|
|
"ref": "1781ff40d8a17d87cf53f8d4cf0c8346ed2bb461"
|
|
},
|
|
"files": [
|
|
"bin/console"
|
|
]
|
|
},
|
|
"symfony/flex": {
|
|
"version": "2.11",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "2.4",
|
|
"ref": "52e9754527a15e2b79d9a610f98185a1fe46622a"
|
|
},
|
|
"files": [
|
|
".env",
|
|
".env.dev"
|
|
]
|
|
},
|
|
"symfony/framework-bundle": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "7.4",
|
|
"ref": "d5dcd308c8becd725c9d8b91e31aab1ff0bbc30b"
|
|
},
|
|
"files": [
|
|
"config/packages/cache.yaml",
|
|
"config/packages/framework.yaml",
|
|
"config/preload.php",
|
|
"config/routes/framework.yaml",
|
|
"config/services.yaml",
|
|
"public/index.php",
|
|
"src/Controller/.gitignore",
|
|
"src/Kernel.php",
|
|
".editorconfig"
|
|
]
|
|
},
|
|
"symfony/mailer": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "4.3",
|
|
"ref": "09051cfde49476e3c12cd3a0e44289ace1c75a4f"
|
|
},
|
|
"files": [
|
|
"config/packages/mailer.yaml"
|
|
]
|
|
},
|
|
"symfony/maker-bundle": {
|
|
"version": "1.67",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "1.0",
|
|
"ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
|
|
}
|
|
},
|
|
"symfony/messenger": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "6.0",
|
|
"ref": "d8936e2e2230637ef97e5eecc0eea074eecae58b"
|
|
},
|
|
"files": [
|
|
"config/packages/messenger.yaml"
|
|
]
|
|
},
|
|
"symfony/monolog-bundle": {
|
|
"version": "4.0",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "3.7",
|
|
"ref": "1b9efb10c54cb51c713a9391c9300ff8bceda459"
|
|
},
|
|
"files": [
|
|
"config/packages/monolog.yaml"
|
|
]
|
|
},
|
|
"symfony/property-info": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "7.3",
|
|
"ref": "dae70df71978ae9226ae915ffd5fad817f5ca1f7"
|
|
},
|
|
"files": [
|
|
"config/packages/property_info.yaml"
|
|
]
|
|
},
|
|
"symfony/routing": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "7.4",
|
|
"ref": "bc94c4fd86f393f3ab3947c18b830ea343e51ded"
|
|
},
|
|
"files": [
|
|
"config/packages/routing.yaml",
|
|
"config/routes.yaml"
|
|
]
|
|
},
|
|
"symfony/security-bundle": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "7.4",
|
|
"ref": "c42fee7802181cdd50f61b8622715829f5d2335c"
|
|
},
|
|
"files": [
|
|
"config/packages/security.yaml",
|
|
"config/routes/security.yaml"
|
|
]
|
|
},
|
|
"symfony/twig-bundle": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "6.4",
|
|
"ref": "06dacf16872358cb1f2494e089070ff2d045233a"
|
|
},
|
|
"files": [
|
|
"config/packages/twig.yaml",
|
|
"templates/base.html.twig"
|
|
]
|
|
},
|
|
"symfony/uid": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "7.0",
|
|
"ref": "0df5844274d871b37fc3816c57a768ffc60a43a5"
|
|
}
|
|
},
|
|
"symfony/validator": {
|
|
"version": "7.4",
|
|
"recipe": {
|
|
"repo": "github.com/symfony/recipes",
|
|
"branch": "main",
|
|
"version": "7.0",
|
|
"ref": "8c1c4e28d26a124b0bb273f537ca8ce443472bfd"
|
|
},
|
|
"files": [
|
|
"config/packages/validator.yaml"
|
|
]
|
|
}
|
|
}
|