nova-flexible-content icon indicating copy to clipboard operation
nova-flexible-content copied to clipboard

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

Open novelnet opened this issue 2 years ago • 6 comments

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.

novelnet avatar May 07 '22 16:05 novelnet