Closed
Description
- Laravel Version: 7
- Nova Version: 3.3.2
- PHP Version: 7.4.4
Description:
When trying to localize things like the Resource label()
or singularLabel()
, by using return __('Users')
, it won't translate. Also in the sidebar: "Resources" and "Dashboard" does not translate... I have a correct de.json in resources/lang/vendor/nova/de.json and I load it via this:
class NovaServiceProvider extends NovaApplicationServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
parent::boot();
Nova::serving(function (ServingNova $event) {
Nova::translations(
resource_path('lang/vendor/nova/'.app()->getLocale().'.json')
);
});
}
app()->getLocale()
return de
(correct!).
The translations for the primary blue buttons like "Create :resource" does work fine!
Metadata
Metadata
Assignees
Labels
No labels