filament-translations-google
Translations Manager extension to use Google translation crawling to auto translate your __(), trans() fn
Extends filament-translations
composer require tomatophp/filament-translations-googleReadme

Filament Google Translations
Translations Manager extension to use Google translation crawling to auto translate your __(), trans() fn
Version Compatibility
| Plugin | Filament | Laravel | PHP |
|---|---|---|---|
| 1.x | 3.x | 10.x / 11.x | 8.1+ |
4.x (v4 branch) | 4.x | 11.x / 12.x | 8.2+ |
| 5.x | 5.x | 12.x / 13.x | 8.2+ |
Screenshots

Installation
before install this package you need to have Translation Manager installed and configured
after install your package please run this command
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
Usage
Click the Google Translate button on the translations page and pick a language. A queued job translates the English text of every translation
(or its key when there is no English text) into that language, keeping :placeholders as they are, and notifies you when it is done.
Run a queue worker (php artisan queue:work) for the job to run.
It uses stichoza/google-translate-php, which calls the public Google Translate web endpoint: no API key is needed, but Google rate limits it and may block servers that send many requests.
The action follows the translation policy of the Translation Manager: it needs the create ability.
Use your own translator
The job resolves Stichoza\GoogleTranslate\GoogleTranslate from the container, so you can bind your own instance, for example with proxy options,
or a fake one that never calls Google (useful for a public demo or for tests):
Publish Assets
you can publish config file by use this command
you can publish languages file by use this command
Testing
if you like to run PEST testing just use this command
Code Style
if you like to fix the code style just use this command
PHPStan
if you like to check the code by PHPStan just use this command
Other Filament Packages
Checkout our Awesome TomatoPHP