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.
eg.
<h1>{{ Lang::get('forms.contact-form.first-name') }}</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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community