title: Translation strings as keys in Laravel
body: <p>I read the documentation for translation strings on <a href="https://laravel.com/docs/5.4/localization#retrieving-translation-strings" rel="nofollow noreferrer">Retrieving Translation Strings</a> but somehow I don't understand how to apply it. </p>
  
  <p>Let's say I would like to render in a view <code>posts.index</code> the message <em>"I like programming"</em> in English, German ("<em>Ich mag Programmieren</em>") or Spanish ("<em>Me encanta programar</em>"), depending on the localization set by App::setLocale().</p>
  
  <p>How would the translation files look like and how would I setup the view?</p>