developerekramul / laravel-auto-translate
Automatic Google Translate + Banglish toggle for Laravel
Package info
github.com/developerekramul1/laravel-auto-translate
pkg:composer/developerekramul/laravel-auto-translate
dev-main
2026-03-25 11:45 UTC
Requires
- php: >=8.0
- illuminate/support: ^10.0|^11.0
- stichoza/google-translate-php: ^5.3
This package is auto-updated.
Last update: 2026-04-25 11:56:10 UTC
README
Automatic Google Translate + Banglish toggle for Laravel.
Installation
composer require developerekramul/laravel-auto-translate Publish Config (optional) php artisan vendor:publish --provider="Developerekramul\AutoTranslate\AutoTranslateServiceProvider" --tag=config <h1>{{ translate($product->title) }}</h1> <p>{{ translate('Category', null, ['banglish' => true]) }}</p> <span>{{ translate($product->new_price, null, ['is_price'=>true,'currency'=>'৳']) }}</span> $title = translate($request->title, null, ['banglish'=>true]); $price = translate($request->price, null, ['is_price'=>true,'currency'=>'৳']); $product->title_translated = translate($product->title); $product->description_translated = translate($product->description); translate('Category', null, ['banglish'=>true]); translate(1000, null, ['is_price'=>true, 'currency'=>'৳']);