Troubleshooting
Common issues and their solutions.
Installation Issues
Package won't install
Error: Package not found
Solution:
- Clear composer cache and retry
- Verify the package name is correct
composer clear-cache
composer require headwires/translator-client
Configuration not publishing
Error: Unable to publish configuration
Solution:
php artisan vendor:publish --tag=translator-client-config --force
Translation Issues
Translations not updating
Symptoms: Published changes don't appear in your app
Checklist:
- Verify translations are marked as Active in LangSyncer
- Run sync command to pull latest:
php artisan translator:sync - If using
staticmode, regenerate cache:php artisan translator:warmup - Clear Laravel's application cache:
php artisan cache:clear
Missing translations showing raw keys
Symptoms: See messages.welcome instead of "Welcome!"
Checklist:
- Verify the key exists in LangSyncer
- Verify translation is Active (not Draft)
- Check locale matches your app's current locale
- Check
config/translator-client.phpfallback settings:'fallback_locale' => 'en',
Variables not replaced
Symptoms: See :name instead of actual name
Solutions:
- Ensure you're passing variables:
__('messages.welcome', ['name' => $user->name]) - Check variable name matches exactly (case-sensitive)
Wrong locale showing
Symptoms: Getting English when expecting Spanish
Checklist:
- Verify
app()->getLocale()returns expected locale - Check middleware is setting locale correctly
- Verify translation exists for that locale in LangSyncer
Client Mode Issues
Live mode not fetching translations
Symptoms: Changes in LangSyncer not reflected in live mode
Checklist:
- Verify
CLI_TRANSLATOR_MODE=livein.env - Verify
CLI_TRANSLATOR_API_KEYis set correctly - Verify
CLI_TRANSLATOR_CDN_URLis set (copy from project's API Key & CDN tab) - Ensure translations are Active in LangSyncer
CDN fetch returning 404
Symptoms: translator:sync or translator:warmup fails with "not found" errors
Solution:
- Ensure
CLI_TRANSLATOR_CDN_URLis set in your.env - Copy the exact URL from your project's API Key & CDN tab in LangSyncer
- Verify translations have been published at least once
- Click Regenerate CDN in the project's Actions modal to refresh CDN files
Static mode cache stale
Symptoms: Old translations despite publishing new ones
Solution:
php artisan translator:sync
php artisan translator:warmup
Add to your deployment script to automate this.
Code Scanner Issues
Scanner not finding translations
Symptoms: Files scanned but no suggestions generated
Checklist:
- Verify you're scanning
.blade.phpor.phpfiles - Check files contain hardcoded strings (not already using
__()) - Ensure files are in the scanned directory
Scanner false positives
Symptoms: Scanner suggests translating code that shouldn't be translated
Solution: Review suggestions carefully before applying. The scanner may suggest translations in invalid PHP contexts like array keys or constants.
AI Translation Issues
AI translation failed
Error: AI translation unavailable
Checklist:
- Verify you have AI quota remaining
- Ensure source text is not empty
- Try again in a few minutes
Quota depleted
Solutions:
- Purchase a quota pack for immediate credits
- Wait for monthly quota reset (billing cycle)
- Upgrade to Icebreaker for higher monthly quota
Billing Issues
Payment failed
Solutions:
- Verify card details are correct
- Check card hasn't expired
- Ensure sufficient funds
- Try a different payment method via Manage Billing
- Contact your bank if declined
Subscription not active
Checklist:
- Go to Subscription to check status
- Verify payment completed
- Look for failed payment notifications
- Contact support if payment shows successful but subscription isn't active
Common Error Messages
| Error | Cause | Solution |
|---|---|---|
| "Project not found" | API key invalid or project deleted | Verify CLI_TRANSLATOR_API_KEY in .env |
| "CDN fetch failed" / 404 | CDN URL not configured | Add CLI_TRANSLATOR_CDN_URL from project's Actions modal |
| "Quota exceeded" | AI quota depleted | Purchase quota pack or wait for reset |
| "Invalid translation key" | Key has invalid characters | Use only letters, numbers, dots, underscores |
| "Duplicate key" | Key already exists | Update existing key instead |
Diagnostic Commands
Check configuration status
php artisan translator:status
Shows:
- Project name
- API Key (configured/missing)
- CDN URL (configured/missing)
- Lang files path
- Mode (static/live/auto)
- Cache TTL
- Webhook status
Getting Help
Before contacting support, gather:
- Error messages (full text)
- Steps to reproduce
- Laravel version (
php artisan --version) - Package version (
composer show headwires/translator-client)
Contact support for billing or technical issues.