laravel-nova-nested-form
laravel-nova-nested-form copied to clipboard
What's the best way to translate things in LNNF
Hello !
I would like to change the language of Laravel Nova nested form, to use my own translation.
Like changing "No related x yet" or things like that.
What's the best way to do it?
Regards
Any solution yet?
From https://nova.laravel.com/docs/3.0/customization/localization.html#frontend
You can add the translation in your NovaServiceProvider
boot()
function :
Nova::serving(function () {
Nova::translations([
"No related :pluralLabel yet." => "Pas encore ajouté de :pluralLabel",
"Update Related :resource" => "Mettre à jour :resource"
]);
});