Translation strings as keys in Laravel
22:26 01 Aug 2017

I read the documentation for translation strings on Retrieving Translation Strings but somehow I don't understand how to apply it.

Let's say I would like to render in a view posts.index the message "I like programming" in English, German ("Ich mag Programmieren") or Spanish ("Me encanta programar"), depending on the localization set by App::setLocale().

How would the translation files look like and how would I setup the view?

laravel laravel-blade