tanmuhittin/laravel-google-translate
Translate Laravel lang files and lang.json via Google Translate, Yandex, or a custom API. Adds Str::apiTranslate helpers that preserve Laravel placeholders like :name. Install with composer, publish config, run php artisan translate:files.
resources/lang and lang.json files, letting the PM defer investment in custom translation automation until volume and quality requirements justify it.Str::apiTranslateWithAttributes helper respects Laravel placeholders such as :name, making a “machine draft + human review” pipeline operationally feasible rather than blocking releases on complete professional translation.ApiTranslatorContract and config-driven provider selection let teams swap Google, Yandex, or an internal translation API without product rework, which helps satisfy procurement, cost, or data-handling constraints.Consider adoption when:
/resources/lang or lang.json.Look elsewhere when:
Executives: This is a small, MIT-licensed Laravel utility that can reduce the time and cost of producing first-draft translations for new markets. It lets us test localization demand before committing to professional translation contracts. It is not a replacement for quality review, and it carries dependency and third-party API risk—so we should pilot it on non-critical strings and measure review effort, API cost, and maintainability before broader rollout.
Engineering: The package automates Laravel lang-file translation through Google, Yandex, or a custom API, and adds Str::apiTranslate helpers that respect Laravel placeholders. Integration is lightweight and config-driven, with a custom ApiTranslatorContract for provider swaps. Caveat: it has a small community footprint, 0 dependents, and no visible test/coverage signals in the provided maturity data—treat it as a development-time accelerator, not a critical-path service.
Product/operations: Use it for a “machine draft, human approve” localization workflow. Pilot on one low-risk locale, define review ownership, track translation quality and API spend, and gate expansion on those results. Avoid using it for legal, medical, brand-sensitive, or safety-critical copy.
How can I help you explore Laravel packages today?