Skip to content

Incomplete translations #3237

@martio

Description

@martio
  • Laravel Version: 8.25.0
  • Nova Version: 3.20.0
  • PHP Version: 8.0.1

Description:

Incomplete translation when localization is set to another language in the app config file.

Detailed steps to reproduce the issue on a fresh Nova installation:

FILE: config/app.php

When 'locale' => 'en' is OK:

Zrzut ekranu 2021-02-10 o 11 16 03

When 'locale' => 'pl' is INCOMPLETE ("Resouces" label in sidebar and "Create" button):

Zrzut ekranu 2021-02-10 o 11 16 26

NovaServiceProvider:

    public function boot()
    {
        parent::boot();

        Nova::serving(function (ServingNova $event) {
            $this->app->setLocale('pl');

            Nova::translations([
                resource_path('lang/vendor/nova/en.json'),
                resource_path('lang/vendor/nova/pl.json'),
            ]);
        });
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions