laravel-translator
Custom translator for Laravel that prevents the need to use traditional placeholders for getting a translation inside a translation, (*1)
Add the following to you Providers array (app/config/app.php):, (*2)
Genster\CustomLaravelTranslator\TranslatorProvider, (*3)
Remove/uncomment the default provider:, (*4)
Illuminate\Translation\TranslationServiceProvider, (*5)
Usage:
Use [[ ]] as placeholders to have it be replaced by the corresponding translation key., (*6)
Example:
lang/en/default.php, (*7)
array(
'hello world' => 'Please contact us at [[contact.phone]]',
)
lang/en/contact.php, (*8)
array(
'phone' => '+49 12345678'
)