laravel/localization (for locale-aware routing, views, and translations).laravel/gettext (for GetText-based translations).spatie/laravel-translatable (for database-level multilingual models).
The bundle’s value proposition is unclear without deeper feature differentiation (e.g., unique data structures, caching, or UI components).LocaleListener to Laravel’s middleware).RequestStack, TranslatorInterface) would necessitate near-total refactoring to fit Laravel.localization, gettext, spatie/laravel-translatable) lack?Translator component, or does it include unique features (e.g., locale-aware API responses, dynamic translation loading)?trans() with JSON/XLF files)?spatie/laravel-translation-loader) been evaluated for gaps this bundle might fill?symfony/translation, symfony/http-foundation) are not natively supported in Laravel. Integration would require:
laravel/localization + php-gettext for file-based translations.spatie/laravel-translatable for Eloquent models.spatie/laravel-translation-loader for optimized translation loading.config/app.php locales, resources/lang, trans() usage).LocaleListener) to Laravel middleware.Request object vs. Laravel’s Illuminate\Http\Request.TranslatorInterface but uses Laravel’s Translator under the hood.spatie/laravel-translatable).Translator may introduce unnecessary complexity (e.g., catalog compilation) compared to Laravel’s lightweight trans().Locale class may conflict with Laravel’s App::setLocale().Request handling could expose Laravel to CSRF or XSS if not properly sandboxed.ContainerAware, EventDispatcher) to Laravel equivalents.How can I help you explore Laravel packages today?