title: Laravel Nova card localization
body: <p>I'm trying to add localization support for a <a href="https://nova.laravel.com/docs/1.0/customization/cards.html" rel="noreferrer">card</a> built for the Laravel Nova dashboard.</p>
  
  <p>I already created a folder in <code>/resources/lang</code> containing the JSON language files in a format like <code>en.json</code>. The files get published (copied) with the publish command but the <code>loadJsonTranslationsFrom()</code> does not seem to do anything:</p>
  
  <pre><code>class CardServiceProvider extends ServiceProvider
  {
    public function boot()
    {
      $this-&gt;publishes(
        [__DIR__ . '/../resources/lang' =&gt; resource_path('lang/vendor/my-custom-card')],
        'my-custom-card-lang'
      );
  
      $this-&gt;loadJsonTranslationsFrom(resource_path('lang/vendor/my-custom-card'));
    }
  }
  </code></pre>
  
  <p>This is how the markup in <code>Card.vue</code> looks like:</p>
  
  <pre><code>{{__('Title')}}
  </code></pre>
  
  <p>How can I test if the JSON files are loaded correctly? What am I missing?</p>
  
  <p>The question is how do I support localization for cards in Laravel Nova?</p>