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 or lang.json. The package is best positioned as a build-time/developer-workflow tool, not a runtime translation service. It can bootstrap locale files and provide Str::apiTranslate / Str::apiTranslateWithAttributes helpers for ad-hoc server-side translation. The ApiTranslatorContract is a useful extension point for routing through an existing TMS or approved provider. Poor fit for user-generated content, CMS-managed copy, regulated/legal text, or any flow requiring contextual, brand-approved translation.:name, and whether existing manual translations are preserved or overwritten. Community validation is limited: 434 stars but 0 dependents and maturity limited to README/releases, so production battle-testing is not evident. Single-maintainer and Laravel/PHP version-compatibility risk should be assumed until verified.require-dev dependency, publish the config, configure the approved provider and key through environment variables, and run against a short-lived branch. Start with one low-risk locale, review the generated diff, validate placeholders/pluralization, and commit only after review. Avoid running it in production request paths. If governance requires an existing translation vendor, implement a custom ApiTranslatorContract adapter rather than adopting a new provider directly.composer.json constraints before adoption, especially Laravel major version, PHP version, Symfony Console, and Guzzle dependencies. Test in the same CI matrix as the application. Confirm whether the package overwrites existing translation values or only fills missing keys, and whether it supports the project’s file layout (lang/ vs resources/lang, PHP arrays vs JSON).stichoza/google-translate-php only for low-risk/internal use, or a custom TMS adapter. 4) Pilot one locale on a branch. 5) Add automated validation for placeholders and syntax. 6) Move to a CI job or scheduled PR workflow with human review before merge. 7) Reassess against a full TMS when locale count, content volume, or review requirements grow.How can I help you explore Laravel packages today?