title: BackpackforLaravel: How do I get the translation in the frontend?
body: <p>I have setup BackpackforLaravel v5.0.19 together with the PageManager (<a href="https://github.com/Laravel-Backpack/PageManager" rel="nofollow noreferrer">https://github.com/Laravel-Backpack/PageManager</a>).</p>
  <p>I followed the instructions described at <a href="https://backpackforlaravel.com/docs/5.x/crud-operation-update#translatable-models" rel="nofollow noreferrer">https://backpackforlaravel.com/docs/5.x/crud-operation-update#translatable-models</a> to make it translatable and it works just fine in the backend.</p>
  <p>For the frontend, I also followed their docs as per &quot;Example front-end&quot; on the README of <a href="https://github.com/Laravel-Backpack/PageManager" rel="nofollow noreferrer">https://github.com/Laravel-Backpack/PageManager</a> and the routing works etc.</p>
  <p>Unfortunately, I dont know how to get the translated value for the content / title. This is my about_us.blade.php.</p>
  <pre><code>@extends('bootstrap.layout')
  
  @section('content')
      &lt;div class=&quot;container content-space-t-3 content-space-t-lg-5&quot;&gt;
          &lt;div class=&quot;w-lg-75 text-center mx-lg-auto&quot;&gt;
  
              &lt;div class=&quot;row&quot;&gt;
                  &lt;div class=&quot;col-12&quot;&gt;
                      @php
                         // dd($page);
                      @endphp
  {{ App::getLocale(); }}
  @php 
      $locale = app()-&gt;setLocale('de');
      
  @endphp
  
                      {{ $page-&gt;title }}
                      {{ $page-&gt;content }}
  
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  @endsection
  </code></pre>
  <p>The page loads but</p>
  <ul>
  <li>page title is empty</li>
  <li>page content is only the array</li>
  </ul>
  <pre><code>{&quot;en&quot;:&quot;Privacy Policy&quot;,&quot;de&quot;:&quot;Datenschutz&quot;} {&quot;en&quot;:&quot;&lt;p&gt;Privacy Policy&lt;\/p&gt;&lt;p&gt;This is our Privacy Policy&lt;\/p&gt;&lt;p&gt;&lt;br&gt;&lt;\/p&gt;&quot;,&quot;de&quot;:&quot;&lt;p&gt;Das ist unsere Datenschutzerklärung&lt;\/p&gt;&quot;}
  </code></pre>
  <p>This is my Page model:</p>
  <pre><code>&lt;?php
  
  namespace App\Models;
  
  use Backpack\CRUD\app\Models\Traits\CrudTrait;
  use Cviebrock\EloquentSluggable\Sluggable;
  use Cviebrock\EloquentSluggable\SluggableScopeHelpers;
  use Illuminate\Database\Eloquent\Model;
  use Str;
  use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\HasTranslations;
  
  
  class Page extends Model
  {
      use CrudTrait;
      use Sluggable;
      use SluggableScopeHelpers;
      use HasTranslations;
  
      /*
      |--------------------------------------------------------------------------
      | GLOBAL VARIABLES
      |--------------------------------------------------------------------------
      */
  
      protected $table = 'pages';
      protected $primaryKey = 'id';
      public $timestamps = true;
      // protected $guarded = ['id'];
      protected $fillable = ['template', 'name', 'title', 'slug', 'content', 'extras'];
      // protected $hidden = [];
      // protected $dates = [];
      protected $fakeColumns = ['extras'];
      protected $casts = [
          'extras' =&gt; 'array',
      ];
      protected $translatable = ['title', 'content'];
  </code></pre>
  <p>Does anybody see what I am missing?</p>
  <p>Thanks</p>