· 1 min read

Add Live Translations to Laravel in 5 Minutes

laravel getting-started tutorial

You've got a Laravel app. You need translations. Here's how to get live, instant-update translations in 5 minutes.

Minute 1: Create Your Account

Go to LangSyncer, click Start for Free, and register. You're on the Free tier with 100 AI translations/month.

Minute 2: Create a Project

  1. Click New Project
  2. Name it (e.g., "My Laravel App")
  3. Select your languages
  4. Copy your API key

Minute 3: Install the Package

composer require headwires/translator-client
php artisan vendor:publish --tag=translator-client-config

Minute 4: Configure

Add to your .env:

CLI_TRANSLATOR_API_KEY=your-api-key-here
CLI_TRANSLATOR_CDN_URL=https://cdn.langsyncer.com
CLI_TRANSLATOR_CLIENT_MODE=live
CLI_TRANSLATOR_CLIENT_WEBHOOK_ENABLED=true

Pre-cache your translations:

php artisan translator:warmup

Minute 5: Test It

  1. Go to LangSyncer dashboard
  2. Create a translation: messages.hello = "Hello World"
  3. Click Publish
  4. Refresh your Laravel app
{{ __('messages.hello') }}
// Output: Hello World

Change the translation in LangSyncer, publish, refresh. Instant update.

That's It

No more editing PHP files. No more deployments for typo fixes. No more waiting for PRs to merge.

Edit → Publish → Live.


Get started for free →