Skip to content

Some Nova translations break in combination with nova-flexible-content button translation #350

@novelnet

Description

@novelnet

I have set the locale to 'de'.
When using nova-flexbile-content anywhere in Nova the translations break in some places only, like here:

image

When i remove the translation function __('Add layout') in Flexible.php everything works in Nova again:

public function __construct($name, $attribute = null, $resolveCallback = null)
    {
        parent::__construct($name, $attribute, $resolveCallback);

        $this->button('Add layout');
        ...

image

This issue has multiple users probably and there is also one open at Nova directly: laravel/nova-issues#4192

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions