Laravel Nova card localization
Card localization has been solved in Laravel Nova 2.
To localize strings use the __
helper within your Vue components and load the according translation files within your NovaServiceProvider
:
Nova::serving(function (ServingNova $event) {
Nova::script('{{ component }}', __DIR__.'/../dist/js/card.js');
Nova::style('{{ component }}', __DIR__.'/../dist/css/card.css');
Nova::translations(__DIR__.'/../resources/lang/en/card.json');
});
An exemplary implementation can be found on GitHub.
Further information is now available in the documentation.