edulazaro/laratext
Laratext manages Laravel translation strings by pairing key + text for readable files and stable translations. Adds @text/text() helpers, scans and updates language files, and can auto-translate missing keys via OpenAI or Google Translate across locales.
Architecture fit: The package seamlessly extends Laravel's native localization system by building on top of existing conventions (e.g., config/texts.php, env variables). It leverages Laravel's service container for translator implementations and maintains compatibility with Blade directives and helper functions, avoiding deep framework modifications. This ensures minimal disruption to standard Laravel workflows while enhancing translation management.
Integration feasibility: High feasibility due to standardized Laravel package installation (Composer + vendor:publish), simple configuration via environment variables, and no external infrastructure dependencies beyond translation service APIs. The setup requires only basic API key configuration and language definitions, with clear documentation for common use cases.
Technical risk: Significant concerns include 0 dependents (indicating low adoption), a suspicious "last release" date of 2026-02-25 (impossible future date suggesting data inaccuracies), and potential instability from reliance on external translation APIs. The package lacks proven production usage, and unaddressed issues like JSON parsing failures in past releases (e.g., "Prevent nested JSON string" fixes) indicate fragility. Security risks exist around API key handling in .env, with no mention of secret management best practices.
Key questions:
Stack fit: Excellent fit for standard Laravel applications (v8+). Uses native Laravel patterns (service providers, config files, Blade directives) and integrates with common translation services via well-defined interfaces. No additional infrastructure or framework dependencies beyond Laravel core.
Migration path: Incremental adoption is feasible:
__() calls with text()/@text() in new featureslaratext:scan --write to auto-generate language files for existing keysHow can I help you explore Laravel packages today?