Is this a bug? #6094
mariusghitoiu
started this conversation in
General
Is this a bug?
#6094
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Nova 4, latest at the moment, 4.32.9 I noticed the following situation:
jsonSerialize
methodMy expectation was that this should be translated before it gets to this method, in MenuSection in NovaServiceProvider like this
MenuItem::resource(Certificate::class)->name(__('Certificates')),
The interesting part is that the translation for
Certificates
in romanian isCertificate
, but then this is also the singular from certificates in english, which then is translated in romanian withCertificat
, so I end up in my menu with the singular translation ofCertificates
instead of the plural.My fix to this was to set the label and singularLabel in resource like this, even if it doesn't feel right.
Should the name be translated in
jsonSerialize
? I am thinking there might be other use cases where this is necessary.Beta Was this translation helpful? Give feedback.
All reactions