developerekramul/laravel-auto-translate

Automatic Google Translate + Banglish toggle for Laravel

Maintainers

Package info

github.com/developerekramul1/laravel-auto-translate

pkg:composer/developerekramul/laravel-auto-translate

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2026-03-25 11:45 UTC

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'=>'']);