Jan 9, 2021
3
Level 2
Nova localization/translations
Hi,
I'm trying to translate some of the Nova application into my local language (danish).
I found this page: https://nova.laravel.com/docs/3.0/customization/localization.html
Tells me to create a copy of the lang file:
php artisan nova:translate dk
- Works fine, file is created (I changed some text to test it).
At the end of the documentation it tells me to do the following:
To propagate your localizations to the frontend, you should call the Nova::translationsmethod within your NovaServiceProvider:
Nova::translations($pathToFile);
I'm not sure where to insert Nova::translations($pathToFile); and what the correct path is (file is named dk.json and is located in the lang/vendor/nova folder.
Any help is very appreciated
Level 20
2 likes
Please or to participate in this conversation.