Skip to content
Discussion options

You must be logged in to vote

The translation is working perfect for me. I use the entire app in 'pt_BR' locale.
You have to do just 3 things:

  1. Get the json lang file. I recommend using: https://github.com/coderello/laravel-nova-lang and insert your custom content
  2. Put the .json lang file in resources/lang folder
  3. in config/app.php, change the locale to the name of your json file

Ps: Nova, automatically handle the translation, so, your code adding the translation is breaking the app. Just do the 3 steps above AND remove your code in NovaServiceProvider that the translation will work perfectly.

Replies: 13 comments 31 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@martio
Comment options

@crynobone
Comment options

Comment options

You must be logged in to vote
1 reply
@martio
Comment options

Comment options

You must be logged in to vote
3 replies
@martio
Comment options

@martio
Comment options

@crynobone
Comment options

Comment options

You must be logged in to vote
1 reply
@henryavila
Comment options

Comment options

You must be logged in to vote
17 replies
@crynobone
Comment options

@martio
Comment options

@crynobone
Comment options

@martio
Comment options

@msucevan
Comment options

Answer selected by crynobone
Comment options

You must be logged in to vote
1 reply
@henryavila
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@crynobone
Comment options

@martio
Comment options

@crynobone
Comment options

@martio
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@crynobone
Comment options

@msucevan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #3237 on February 11, 2021 01:35.