Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the best way to translate things in LNNF #135

Open
SirMishaa opened this issue May 10, 2021 · 2 comments
Open

What's the best way to translate things in LNNF #135

SirMishaa opened this issue May 10, 2021 · 2 comments

Comments

@SirMishaa
Copy link

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

@NoahNxT
Copy link

NoahNxT commented Dec 14, 2021

Any solution yet?

@tomheno
Copy link

tomheno commented Feb 7, 2022

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"
        ]);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants