Skip to content

Some translations are still not working in combination with other nova packages #4192

Closed
@novelnet

Description

@novelnet
  • Laravel Version: 9.11.0
  • Nova Version: 4.4.2
  • PHP Version: 8.0.12
  • Database Driver & Version:
  • Operating System and Version: Win 11
  • Browser type and version: Firefox, Chrome (latest)

Description:

Following up to these two issues #2515, #3767 there is still the problem that some parts of Nova are not translated with the default translation strings inside /lang/vendor/nova/de.json.

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

Fresh Laravel and Nova installation using somewhere the Flexible Content Field (https://github.com/whitecube/nova-flexible-content) causes the missing translations:
image

When commenting out the Flexible Content Field the translations work as normal:
image

My locale is set to 'de'.

When i dig deeper into the Flexible Content Field and remove the translation function __() in the custom field constructor, the translations work correctly again:
https://github.com/whitecube/nova-flexible-content/blob/master/src/Flexible.php
image

I opened an issue at the package directly as well. It seems tho, that other nova users have problems with packages or those missing translations too, as the issue comes up repeatedly.

Thanks in advance.

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