Support the ongoing development of →
posted 10 years ago
Last updated 2 years ago.

You can use the lang files. You don't want to translate the html. You want to translate text nodes. Check the Laravel docs on localization.


<h1>{{ Lang::get('') }}</h1>

It would be better if you could do the translation in a dedicated translator class rather than in the view as well. Then the view is just passed strings that were already translated.

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?

dmitry-php dmitry-php Joined 26 May 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.