modera/translations-bundle
A Laravel bundle for managing application translations from a database or files, with tools for editing strings across locales, organizing language lines, and keeping multilingual content in sync.
Architecture fit — poor
*Bundle suffix and Modera\TranslationsBundle namespace mean it registers through bundles.php / the Symfony DI container. It will not auto-discover in Laravel, ships no service provider, no facade, and no publishable config.__() / trans(), and it does not plug into Laravel's FileLoader chain.lang/{locale}/*.php plus lang/{locale}.json — is not where this bundle writes. It emits Symfony-format resources (XLIFF/YAML under Resources/translations/), which Laravel silently ignores.Integration feasibility — low
trans, transChoice, Twig filters). Laravel's surface is @lang, {{ __('...') }}, and trans_choice, so the extractor will not match our templates.[READ-ONLY] prefix marks a subtree split of a larger Modera monorepo — no issues, no PRs, no CI live here. Any fix we need is a permanent fork.Technical risk — high
Key questions
lang/ footprint — key count, file count, locale count, JSON vs. PHP arrays?Stack fit — none as-is
Migration path
Compatibility and build shape (if we build natively)
translations:extract — scan resources/views, app, routes for __(), @lang, trans_choice; emit a key manifest.translations:sync — diff the manifest against a translations table (locale, group, key, value, status); flag missing and orphaned keys.translations:dump — write back to lang/{locale}/{group}.php and lang/{locale}.json, deterministically sorted to keep diffs reviewable.Sequencing
lang/ files, key duplication, orphans, and locale coverage. Confirm whether the real pain is extraction, translation handoff, or file/DB drift.Maintenance
Support
Scaling
main, never a developer-local command.Failure modes
Ramp-up
modera/translations-bundle as a reference design, not a dependency.How can I help you explore Laravel packages today?